Kevin Moore
Kevin Moore
`Map` should be doable...
See https://github.com/google/json_serializable.dart/issues/795 Converter takes type of `List`. generates ```dart LoginState _$LoginStateFromJson(Map json) { return LoginState( cookies: const _CookiesJsonConverter().fromJson(json['cookies'] as List), ); } ``` Of course the `as List` will fail...
For classes stored as values in a map, make it easy to pass the corresponding key to the constructor
I've hit this a few times. Often you want to structure your serialized value as a map, but you want to have the `key` data stored in the value, without...
It's really not safe to reference `Map` or `String` in the case where someone does `import "dart:core" as foo;` – in practice this should be rare. Same for other types....
Should use a converter. We could also have the builder dump out help here, too. See https://github.com/google/json_serializable.dart/issues/789
No reason to consider these. Would allow one-way processing of JSON that doesn't map 1-to-1 with the resulting object.
* I guess you could have a setter-only for just `fromJson` case. * Don't try to create a write to a property that's only a setter * etc...
See https://github.com/mafintosh/turbo-json-parse