NetworkEndpointGroup.fromJson constructor

NetworkEndpointGroup.fromJson(
  1. Map json_
)

Implementation

NetworkEndpointGroup.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        appEngine: json_.containsKey('appEngine')
            ? NetworkEndpointGroupAppEngine.fromJson(
                json_['appEngine'] as core.Map<core.String, core.dynamic>)
            : null,
        cloudFunction: json_.containsKey('cloudFunction')
            ? NetworkEndpointGroupCloudFunction.fromJson(
                json_['cloudFunction'] as core.Map<core.String, core.dynamic>)
            : null,
        cloudRun: json_.containsKey('cloudRun')
            ? NetworkEndpointGroupCloudRun.fromJson(
                json_['cloudRun'] as core.Map<core.String, core.dynamic>)
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        defaultPort: json_.containsKey('defaultPort')
            ? json_['defaultPort'] as core.int
            : null,
        description: json_.containsKey('description')
            ? json_['description'] 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,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        networkEndpointType: json_.containsKey('networkEndpointType')
            ? json_['networkEndpointType'] as core.String
            : null,
        pscData: json_.containsKey('pscData')
            ? NetworkEndpointGroupPscData.fromJson(
                json_['pscData'] as core.Map<core.String, core.dynamic>)
            : null,
        pscTargetService: json_.containsKey('pscTargetService')
            ? json_['pscTargetService'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        size: json_.containsKey('size') ? json_['size'] as core.int : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );