ForwardingRule.fromJson constructor

ForwardingRule.fromJson(
  1. Map json_
)

Implementation

ForwardingRule.fromJson(core.Map json_)
    : this(
        IPAddress: json_.containsKey('IPAddress')
            ? json_['IPAddress'] as core.String
            : null,
        IPProtocol: json_.containsKey('IPProtocol')
            ? json_['IPProtocol'] as core.String
            : null,
        allPorts: json_.containsKey('allPorts')
            ? json_['allPorts'] as core.bool
            : null,
        allowGlobalAccess: json_.containsKey('allowGlobalAccess')
            ? json_['allowGlobalAccess'] as core.bool
            : null,
        allowPscGlobalAccess: json_.containsKey('allowPscGlobalAccess')
            ? json_['allowPscGlobalAccess'] as core.bool
            : null,
        backendService: json_.containsKey('backendService')
            ? json_['backendService'] as core.String
            : null,
        baseForwardingRule: json_.containsKey('baseForwardingRule')
            ? json_['baseForwardingRule'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        ipCollection: json_.containsKey('ipCollection')
            ? json_['ipCollection'] as core.String
            : null,
        ipVersion: json_.containsKey('ipVersion')
            ? json_['ipVersion'] as core.String
            : null,
        isMirroringCollector: json_.containsKey('isMirroringCollector')
            ? json_['isMirroringCollector'] as core.bool
            : 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,
        loadBalancingScheme: json_.containsKey('loadBalancingScheme')
            ? json_['loadBalancingScheme'] as core.String
            : null,
        metadataFilters: json_.containsKey('metadataFilters')
            ? (json_['metadataFilters'] as core.List)
                .map((value) => MetadataFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
        noAutomateDnsZone: json_.containsKey('noAutomateDnsZone')
            ? json_['noAutomateDnsZone'] as core.bool
            : null,
        portRange: json_.containsKey('portRange')
            ? json_['portRange'] as core.String
            : null,
        ports: json_.containsKey('ports')
            ? (json_['ports'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pscConnectionId: json_.containsKey('pscConnectionId')
            ? json_['pscConnectionId'] as core.String
            : null,
        pscConnectionStatus: json_.containsKey('pscConnectionStatus')
            ? json_['pscConnectionStatus'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        serviceDirectoryRegistrations:
            json_.containsKey('serviceDirectoryRegistrations')
                ? (json_['serviceDirectoryRegistrations'] as core.List)
                    .map((value) =>
                        ForwardingRuleServiceDirectoryRegistration.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        serviceLabel: json_.containsKey('serviceLabel')
            ? json_['serviceLabel'] as core.String
            : null,
        serviceName: json_.containsKey('serviceName')
            ? json_['serviceName'] as core.String
            : null,
        sourceIpRanges: json_.containsKey('sourceIpRanges')
            ? (json_['sourceIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
        target: json_.containsKey('target')
            ? json_['target'] as core.String
            : null,
      );