Dart - How to get Json object from Complex object Hierarchy
问题 On Continuation to following SO Question/Answer :- How to get JSON serialized string using Dart Serialization I want to serialize complex object values in JSON, how can I achieve that using:- Map toJson() { } My class heirarchy is :- class Container { Containerthis.DPC_ID); String get Id => DPC_ID; String get LSDetailUrl => "http://www.indiavotes.com/pc/detail/$DPC_ID/$DB_STATEID/15"; List<GoogleMaps.LatLng> Coordinates; List<LSElectionResult> ElectionData; var DPC_ID; // how to extend