decodeMap<K, V> method
Decodes the data 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>({Decodable<K>? keyUsing, Decodable<V>? valueUsing}) {
final key = keys.current;
return decoder.decodeMap(key is String ? key : '',
id: key is int ? key : null, keyUsing: keyUsing, valueUsing: valueUsing);
}