decodeReference<T> method
Implementation
Reference<T> decodeReference<T>(String key, {int? id, Decodable<T>? using}) {
final next = whatsNext(key, id: id);
if (next is DecodingType<Reference> || next is DecodingType<Future> || next is DecodingType<Stream>) {
return decodeObject<Reference<T>>(key, id: id, using: ReferenceDecodable<T>._(using: using));
} else {
return Reference(decodeObject<T>(key, id: id, using: using));
}
}