Address.fromJson constructor

Address.fromJson(
  1. Map json_
)

Implementation

Address.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        addressType: json_.containsKey('addressType')
            ? json_['addressType'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        ipVersion: json_.containsKey('ipVersion')
            ? json_['ipVersion'] as core.String
            : null,
        ipv6EndpointType: json_.containsKey('ipv6EndpointType')
            ? json_['ipv6EndpointType'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkTier: json_.containsKey('networkTier')
            ? json_['networkTier'] as core.String
            : null,
        prefixLength: json_.containsKey('prefixLength')
            ? json_['prefixLength'] as core.int
            : null,
        purpose: json_.containsKey('purpose')
            ? json_['purpose'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
        users: json_.containsKey('users')
            ? (json_['users'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );