mapListFromJson static method

Map<String, List<Dialect?>?> mapListFromJson(
  1. Map<String, dynamic> json, {
  2. bool? emptyIsNull,
  3. bool? growable,
})

Implementation

static Map<String, List<Dialect?>?> mapListFromJson(
  Map<String, dynamic> json, {
  bool? emptyIsNull,
  bool? growable,
}) {
  final Map<String, List<Dialect?>?> map = <String, List<Dialect>?>{};
  if (json.isNotEmpty == true) {
    json.forEach((key, value) {
      map[key] = Dialect.listFromJson(
        value,
        emptyIsNull: emptyIsNull,
        growable: growable,
      );
    });
  }
  return map;
}