google / json_serializable.dart

Generates utilities to aid in serializing to/from JSON.
https://pub.dev/packages/json_serializable
BSD 3-Clause "New" or "Revised" License
1.55k stars 395 forks source link

add support for case insensitive key parsing #1294

Open romk1n opened 1 year ago

romk1n commented 1 year ago

Please add ability to parse json with case insensitive keys:

{ "key": "value"} should result in the same model as {"Key": "value"} and {"KEY": "value"}```.

That's especially relevant with camelcase, cause of one can write timezoneOffset and another timeZoneOffset :)

Dynesshely commented 6 months ago

Same feature request as for me.