Metro.fromJson constructor

Metro.fromJson(
  1. Map json_
)

Implementation

Metro.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,
        dmaId:
            json_.containsKey('dmaId') ? json_['dmaId'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metroCode: json_.containsKey('metroCode')
            ? json_['metroCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );