Region.fromJson constructor

Region.fromJson(
  1. Map json_
)

Implementation

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