InterconnectLocation.fromJson constructor

InterconnectLocation.fromJson(
  1. Map json_
)

Implementation

InterconnectLocation.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        availabilityZone: json_.containsKey('availabilityZone')
            ? json_['availabilityZone'] as core.String
            : null,
        availableFeatures: json_.containsKey('availableFeatures')
            ? (json_['availableFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        availableLinkTypes: json_.containsKey('availableLinkTypes')
            ? (json_['availableLinkTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        city: json_.containsKey('city') ? json_['city'] as core.String : null,
        continent: json_.containsKey('continent')
            ? json_['continent'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        facilityProvider: json_.containsKey('facilityProvider')
            ? json_['facilityProvider'] as core.String
            : null,
        facilityProviderFacilityId:
            json_.containsKey('facilityProviderFacilityId')
                ? json_['facilityProviderFacilityId'] as core.String
                : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        peeringdbFacilityId: json_.containsKey('peeringdbFacilityId')
            ? json_['peeringdbFacilityId'] as core.String
            : null,
        regionInfos: json_.containsKey('regionInfos')
            ? (json_['regionInfos'] as core.List)
                .map((value) => InterconnectLocationRegionInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        supportsPzs: json_.containsKey('supportsPzs')
            ? json_['supportsPzs'] as core.bool
            : null,
      );