encodeMapTyped<T extends Map<String, V>? , V> function
dynamic
encodeMapTyped<T extends Map<String, V>? , V>(
- T value
Implementation
dynamic encodeMapTyped<T extends Map<String, V>?, V>(T value) {
if (TypeCheck<dynamic>().isSubtypeOf<V>()) {
return value;
}
final codec = TransferCodec.find<V>();
return encodeMap<T, V>(value, (e) => encodeTyped<V>(e, codec: codec));
}