decodeObject<T> method
Decodes the data 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
.
This should only be called if the format returned a DecodingType<T>
from whatsNext or
is otherwise known to support T
as a custom type.
Implementation
@override
T decodeObject<T>({Decodable<T>? using}) {
final key = keys.current;
return decoder.decodeObject(key is String ? key : '', id: key is int ? key : null, using: using);
}