When it comes to JSON encoding in Dart, per Seth Ladd\'s accouncement the finally approved now official way to go is dart:convert + JSON.Encode. >
dart:convert
JSON.Encode
An alternative is to use the Serialization package and add rules for your classes. The most basic form uses reflection to get the properties automatically.