GoogleCloudAiplatformV1DedicatedResources.fromJson constructor

GoogleCloudAiplatformV1DedicatedResources.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1DedicatedResources.fromJson(core.Map json_)
    : this(
        autoscalingMetricSpecs: json_.containsKey('autoscalingMetricSpecs')
            ? (json_['autoscalingMetricSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1AutoscalingMetricSpec.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        machineSpec: json_.containsKey('machineSpec')
            ? GoogleCloudAiplatformV1MachineSpec.fromJson(
                json_['machineSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        maxReplicaCount: json_.containsKey('maxReplicaCount')
            ? json_['maxReplicaCount'] as core.int
            : null,
        minReplicaCount: json_.containsKey('minReplicaCount')
            ? json_['minReplicaCount'] as core.int
            : null,
      );