mapToJson<T1, T2> function
Converts a map to a Json map by recursively converting its keys and values to Json compatible types.
Implementation
Map<String, dynamic> mapToJson<T1, T2>(
Map<T1, T2> input, {
Set<Type> typesAllowed = const {},
String? Function(dynamic)? keyConverter,
}) {
return _mapToJson(
input,
typesAllowed,
keyConverter,
) as Map<String, dynamic>;
}