How do I decode received data in Dart/Flutter?
I'm new here and this is my first question
In Dart, using the supabase package, I'm trying to decode the data I receive for example from the following code:
final data = await supabase
.from('countries')
.select('''
name,
cities (
name
)
''');
How do I do that? Can anyone provide me with an example how I get the resulting Dart objects out of data? How would I e.g. print the table that I get as result? Thank you.
Code taken from the documentation: https://supabase.com/docs/reference/dart/select
final data = await supabase
.from('countries')
.select('''
name,
cities (
name
)
''');
How do I do that? Can anyone provide me with an example how I get the resulting Dart objects out of data? How would I e.g. print the table that I get as result? Thank you.
Code taken from the documentation: https://supabase.com/docs/reference/dart/select
