InstanceGroupManager.fromJson constructor

InstanceGroupManager.fromJson(
  1. Map json_
)

Implementation

InstanceGroupManager.fromJson(core.Map json_)
    : this(
        allInstancesConfig: json_.containsKey('allInstancesConfig')
            ? InstanceGroupManagerAllInstancesConfig.fromJson(
                json_['allInstancesConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        autoHealingPolicies: json_.containsKey('autoHealingPolicies')
            ? (json_['autoHealingPolicies'] as core.List)
                .map((value) =>
                    InstanceGroupManagerAutoHealingPolicy.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        baseInstanceName: json_.containsKey('baseInstanceName')
            ? json_['baseInstanceName'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        currentActions: json_.containsKey('currentActions')
            ? InstanceGroupManagerActionsSummary.fromJson(
                json_['currentActions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        distributionPolicy: json_.containsKey('distributionPolicy')
            ? DistributionPolicy.fromJson(json_['distributionPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        instanceGroup: json_.containsKey('instanceGroup')
            ? json_['instanceGroup'] as core.String
            : null,
        instanceLifecyclePolicy: json_.containsKey('instanceLifecyclePolicy')
            ? InstanceGroupManagerInstanceLifecyclePolicy.fromJson(
                json_['instanceLifecyclePolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        instanceTemplate: json_.containsKey('instanceTemplate')
            ? json_['instanceTemplate'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        listManagedInstancesResults:
            json_.containsKey('listManagedInstancesResults')
                ? json_['listManagedInstancesResults'] as core.String
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        namedPorts: json_.containsKey('namedPorts')
            ? (json_['namedPorts'] as core.List)
                .map((value) => NamedPort.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        statefulPolicy: json_.containsKey('statefulPolicy')
            ? StatefulPolicy.fromJson(json_['statefulPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? InstanceGroupManagerStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        targetPools: json_.containsKey('targetPools')
            ? (json_['targetPools'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetSize: json_.containsKey('targetSize')
            ? json_['targetSize'] as core.int
            : null,
        updatePolicy: json_.containsKey('updatePolicy')
            ? InstanceGroupManagerUpdatePolicy.fromJson(
                json_['updatePolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        versions: json_.containsKey('versions')
            ? (json_['versions'] as core.List)
                .map((value) => InstanceGroupManagerVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );