Currently json_codable assumes that a Map is passed to the fromJson constructor when that constructor is defined by the user.
This is not supported:
@JsonCodable()
class A {
final CustomStringSerialization customStringSerializationField;
}
class CustomStringSerialization {
final String a;
CustomStringSerialization(this.a);
String toJson() => a;
factory CustomStringSerialization.fromJson(String a) =>
CustomStringSerialization(a);
}
Currently json_codable assumes that a Map is passed to the fromJson constructor when that constructor is defined by the user.
This is not supported: