You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this Destination class where I store a LatLong object which also uses json serializable, and has a latitude and longitude field. I want the output of LatLong to not be nested in a coordinates field. Similarly, fromJson should parse the lat and long and create a LatLong object.
I have this
Destination
class where I store aLatLong
object which also uses json serializable, and has alatitude
andlongitude
field. I want the output of LatLong to not be nested in acoordinates
field. Similarly, fromJson should parse the lat and long and create a LatLong object.The output should be:
But my current approach outputs like this:
I want to avoid creating a latitude and longitude field in my
Destination
class. Is there a way to achieve this?The text was updated successfully, but these errors were encountered: