City.fromJson constructor

City.fromJson(
  1. Map json_
)

Implementation

City.fromJson(core.Map json_)
    : this(
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        countryDartId: json_.containsKey('countryDartId')
            ? json_['countryDartId'] as core.String
            : null,
        dartId: json_.containsKey('dartId')
            ? json_['dartId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metroCode: json_.containsKey('metroCode')
            ? json_['metroCode'] as core.String
            : null,
        metroDmaId: json_.containsKey('metroDmaId')
            ? json_['metroDmaId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        regionDartId: json_.containsKey('regionDartId')
            ? json_['regionDartId'] as core.String
            : null,
      );