GoogleCloudMlV1AutoScaling.fromJson constructor

GoogleCloudMlV1AutoScaling.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1AutoScaling.fromJson(core.Map json_)
  : this(
      maxNodes: json_['maxNodes'] as core.int?,
      metrics: (json_['metrics'] as core.List?)
          ?.map(
            (value) => GoogleCloudMlV1MetricSpec.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      minNodes: json_['minNodes'] as core.int?,
    );