FlutterDevTools / simple_json

Simple way to dynamically convert from and to JSON using build-time generators given a type.
https://pub.dev/packages/simple_json
15 stars 4 forks source link

DateTime is failing #9

Open sgehrman opened 3 years ago

sgehrman commented 3 years ago

NoSuchMethodError (NoSuchMethodError: Class 'DateTime' has no instance method 'toJson'. Receiver: Instance of 'DateTime' Tried calling: toJson())

sgehrman commented 3 years ago

Seems the code might fail with DateTime? date;

The question mark.

sgehrman commented 3 years ago

I made a PR that fixes this.