GoogleCloudMlV1AutoScaling.fromJson constructor

GoogleCloudMlV1AutoScaling.fromJson(
  1. Map json_
)

Implementation

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