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) {
if (json == null) {
return null;
}
return elementKind.decodeJsonTree(json);
}