encodeMapOrNull<K, V> method
void
encodeMapOrNull<K, V>(})
override
Encodes a nullable map of K
and V
.
Optionally takes Encodable functions to encode each key and value.
Implementation
@override
void encodeMapOrNull<K, V>(Map<K, V>? value, {Encodable<K>? keyUsing, Encodable<V>? valueUsing}) {
if (value == null) {
encodeNull();
} else {
encodeMap<K, V>(value, keyUsing: keyUsing, valueUsing: valueUsing);
}
}