Kevin Moore

Results 252 issues of Kevin Moore

`Map` should be doable...

State: help wanted
Type: enhancement
P2 medium
pkg:json_serializable

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...

Type: bug
P3 low

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...

Type: enhancement

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....

Type: enhancement

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

pkg:json_annotation

No reason to consider these. Would allow one-way processing of JSON that doesn't map 1-to-1 with the resulting object.

Type: enhancement

* 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...

Type: enhancement

See https://github.com/mafintosh/turbo-json-parse

Type: enhancement