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