mandatoryFromJson method Null safety

  1. @override
Map<K, D> mandatoryFromJson(
  1. Map<String, dynamic> json
)
override

Implementation

@override
Map<K, D> mandatoryFromJson(Map<String, dynamic> json) => json.map(
      (key, value) => MapEntry(
        keyValueType.convertFromJson(key) as K,
        valueValueType.convertFromJson(value as J) as D,
      ),
    );