mandatoryToJson method Null safety

  1. @override
Map<String, J> mandatoryToJson(
  1. Map<K, D> map
)
override

Implementation

@override
Map<String, J> mandatoryToJson(Map<K, D> map) => map.map(
      (key, value) => MapEntry(
        keyValueType.convertToJson(key)!,
        valueValueType.convertToJson(value) as J,
      ),
    );