decodeObject<T> method
Decodes the data for the given key or id as an object of type T
.
This forwards the decoding to the provided Decodable implementation.
Otherwise tries to decode the data to a supported primitive type T
.
Implementation
@override
T decodeObject<T>(String key, {int? id, Decodable<T>? using}) {
try {
return _decode(_value[key], using);
} catch (e, st) {
Error.throwWithStackTrace(CodableException.wrap(e, method: 'decode', hint: '["$key"]'), st);
}
}