decodeJsonTree method
Converts json
(any JSON tree) to an instance of T
.
Throws ArgumentError if the JSON does not match.
Implementation
@override
T decodeJsonTree(Object? json) {
final fromJson = _fromJson;
if (fromJson != null) {
return fromJson(json);
}
return super.decodeJsonTree(json);
}