encodeMapOrNull<K, V> abstract method

void encodeMapOrNull<K, V>(
  1. String key,
  2. Map<K, V>? value, {
  3. int? id,
  4. Encodable<K>? keyUsing,
  5. Encodable<V>? valueUsing,
})

Encodes a nullable map of K and V for the given key or id.

Optionally takes Encodable functions to encode each key and value.

Implementation

void encodeMapOrNull<K, V>(String key, Map<K, V>? value, {int? id, Encodable<K>? keyUsing, Encodable<V>? valueUsing});