encodeMap<T extends Map<String, V>? , V> function
dynamic
encodeMap<T extends Map<String, V>? , V>(
- T value,
- dynamic encode(
- V
Implementation
dynamic encodeMap<T extends Map<String, V>?, V>(
T value, dynamic Function(V) encode) {
return value?.map((key, value) => MapEntry(key, encode(value)));
}