ClusterAutoscaling.fromJson constructor

ClusterAutoscaling.fromJson(
  1. Map json_
)

Implementation

ClusterAutoscaling.fromJson(core.Map json_)
    : this(
        autoprovisioningLocations:
            json_.containsKey('autoprovisioningLocations')
                ? (json_['autoprovisioningLocations'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        autoprovisioningNodePoolDefaults:
            json_.containsKey('autoprovisioningNodePoolDefaults')
                ? AutoprovisioningNodePoolDefaults.fromJson(
                    json_['autoprovisioningNodePoolDefaults']
                        as core.Map<core.String, core.dynamic>)
                : null,
        autoscalingProfile: json_.containsKey('autoscalingProfile')
            ? json_['autoscalingProfile'] as core.String
            : null,
        enableNodeAutoprovisioning:
            json_.containsKey('enableNodeAutoprovisioning')
                ? json_['enableNodeAutoprovisioning'] as core.bool
                : null,
        resourceLimits: json_.containsKey('resourceLimits')
            ? (json_['resourceLimits'] as core.List)
                .map((value) => ResourceLimit.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );