decodeMap<K, V> method
Decodes the data for the given key or id as a map of key-value pairs.
Optionally takes Decodables to decode the keys and values of the map.
Implementation
@override
Map<K, V> decodeMap<K, V>(String key, {int? id, Decodable<K>? keyUsing, Decodable<V>? valueUsing}) {
var d = decoders[key] ?? decoders[id];
return d!.clone().decodeMap(keyUsing: keyUsing, valueUsing: valueUsing);
}