NodePool.fromJson constructor

NodePool.fromJson(
  1. Map json_
)

Implementation

NodePool.fromJson(core.Map json_)
    : this(
        autopilotConfig: json_.containsKey('autopilotConfig')
            ? AutopilotConfig.fromJson(json_['autopilotConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        autoscaling: json_.containsKey('autoscaling')
            ? NodePoolAutoscaling.fromJson(
                json_['autoscaling'] as core.Map<core.String, core.dynamic>)
            : null,
        bestEffortProvisioning: json_.containsKey('bestEffortProvisioning')
            ? BestEffortProvisioning.fromJson(json_['bestEffortProvisioning']
                as core.Map<core.String, core.dynamic>)
            : null,
        conditions: (json_['conditions'] as core.List?)
            ?.map((value) => StatusCondition.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        config: json_.containsKey('config')
            ? NodeConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_['etag'] as core.String?,
        initialNodeCount: json_['initialNodeCount'] as core.int?,
        instanceGroupUrls: (json_['instanceGroupUrls'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        locations: (json_['locations'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        management: json_.containsKey('management')
            ? NodeManagement.fromJson(
                json_['management'] as core.Map<core.String, core.dynamic>)
            : null,
        maxPodsConstraint: json_.containsKey('maxPodsConstraint')
            ? MaxPodsConstraint.fromJson(json_['maxPodsConstraint']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_['name'] as core.String?,
        networkConfig: json_.containsKey('networkConfig')
            ? NodeNetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        placementPolicy: json_.containsKey('placementPolicy')
            ? PlacementPolicy.fromJson(json_['placementPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        podIpv4CidrSize: json_['podIpv4CidrSize'] as core.int?,
        queuedProvisioning: json_.containsKey('queuedProvisioning')
            ? QueuedProvisioning.fromJson(json_['queuedProvisioning']
                as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_['selfLink'] as core.String?,
        status: json_['status'] as core.String?,
        statusMessage: json_['statusMessage'] as core.String?,
        updateInfo: json_.containsKey('updateInfo')
            ? UpdateInfo.fromJson(
                json_['updateInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        upgradeSettings: json_.containsKey('upgradeSettings')
            ? UpgradeSettings.fromJson(json_['upgradeSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        version: json_['version'] as core.String?,
      );