AddSubnetworkRequest.fromJson constructor

AddSubnetworkRequest.fromJson(
  1. Map json_
)

Implementation

AddSubnetworkRequest.fromJson(core.Map json_)
    : this(
        allowSubnetCidrRoutesOverlap:
            json_.containsKey('allowSubnetCidrRoutesOverlap')
                ? json_['allowSubnetCidrRoutesOverlap'] as core.bool
                : null,
        checkServiceNetworkingUsePermission:
            json_.containsKey('checkServiceNetworkingUsePermission')
                ? json_['checkServiceNetworkingUsePermission'] as core.bool
                : null,
        computeIdempotencyWindow:
            json_.containsKey('computeIdempotencyWindow')
                ? json_['computeIdempotencyWindow'] as core.String
                : null,
        consumer: json_.containsKey('consumer')
            ? json_['consumer'] as core.String
            : null,
        consumerNetwork: json_.containsKey('consumerNetwork')
            ? json_['consumerNetwork'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        internalRange: json_.containsKey('internalRange')
            ? json_['internalRange'] as core.String
            : null,
        ipPrefixLength: json_.containsKey('ipPrefixLength')
            ? json_['ipPrefixLength'] as core.int
            : null,
        outsideAllocationPublicIpRange:
            json_.containsKey('outsideAllocationPublicIpRange')
                ? json_['outsideAllocationPublicIpRange'] as core.String
                : null,
        privateIpv6GoogleAccess: json_.containsKey('privateIpv6GoogleAccess')
            ? json_['privateIpv6GoogleAccess'] as core.String
            : null,
        purpose: json_.containsKey('purpose')
            ? json_['purpose'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        requestedAddress: json_.containsKey('requestedAddress')
            ? json_['requestedAddress'] as core.String
            : null,
        requestedRanges: json_.containsKey('requestedRanges')
            ? (json_['requestedRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        secondaryIpRangeSpecs: json_.containsKey('secondaryIpRangeSpecs')
            ? (json_['secondaryIpRangeSpecs'] as core.List)
                .map((value) => SecondaryIpRangeSpec.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
        subnetworkUsers: json_.containsKey('subnetworkUsers')
            ? (json_['subnetworkUsers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        useCustomComputeIdempotencyWindow:
            json_.containsKey('useCustomComputeIdempotencyWindow')
                ? json_['useCustomComputeIdempotencyWindow'] as core.bool
                : null,
      );