JsonToDartClass
JsonToDartClass copied to clipboard
Converts Uppercase field in JSON to lowercase dart class when generating
If a JSON has an uppercase field for example { TestField: "" } it will generate dart code with testField
which doesn't match with JSON and throws error while mapping.
Wish can change On fromJson and ToJson method, like gson { "Hello" : "hi" // @SerializedName("Hello") is better } class { String hello; }
fromJson(Map map) {
hello = map["Hello"];
}