decodeJsonTree method
Converts json
(any JSON tree) to an instance of T
.
Throws ArgumentError if the JSON does not match.
Implementation
@override
bool decodeJsonTree(Object? json) {
if (json is bool) {
return json;
}
throw JsonDecodingError.expectedBool(json);
}