mapFromJson static method

Map<String, Dialect?> mapFromJson(
  1. Map<String, dynamic> json
)

Implementation

static Map<String, Dialect?> mapFromJson(Map<String, dynamic> json) {
  final map = <String, Dialect?>{};
  if (json.isNotEmpty == true) {
    json.forEach((key, value) => map[key] = Dialect.fromJson(value));
  }
  return map;
}