Kevin Moore
Kevin Moore
I'm going to close this out. Feel free to re-open if you'd like to keep cranking...
What type is `Attr`?
Oh, so you want the ability to store the json content as well as the fields? I doubt I'll do that work, but I'd accept a pull request.
Instead of `removeWhere` you likely want `Map.fromEntries(json.entries.where((e) => const !['__meta__', 'id'].contains(e)` or something. I'd also suggest adding a different annotation all together. Something like `JsonRest` – since the other values...
@lukepighetti Another question: would you want the extra things dumped back out in `toJson`?
What @eximius313 said!
I think I like the enum route. Just allows us to unify more things!
So. I think I like this BUT! it's a breaking change. We *could* bring it in as a non-breaking change, but we'd need to keep the existing `ignore` field. Are...
This gets complicated, sadly. It's hard to pick a consistent ordering of fields to search first.
Does `freezed` use `JsonKey`? `json_serializabel` DOES NOT support annotating constructor params.