lejard-h / google_maps_webservice

BSD 3-Clause "New" or "Revised" License
168 stars 221 forks source link

toJson issue #129

Open bhanuka96 opened 3 years ago

bhanuka96 commented 3 years ago

I try to store full json on my database. but this does not convert the whole object to a map.

 PlacesDetailsResponse detail = await places.getDetailsByPlaceId(p.placeId);
log('json : ${detail?.result?.toJson()}');

not convert to map Instance of 'AddressComponent',

json : {address_components: [Instance of 'AddressComponent', Instance of 'AddressComponent', Instance of 'AddressComponent', Instance of 'AddressComponent'],...