GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson constructor

GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson(core.Map json_)
    : this(
        goal: json_.containsKey('goal') ? json_['goal'] as core.String : null,
        metricId: json_.containsKey('metricId')
            ? json_['metricId'] as core.String
            : null,
        safetyConfig: json_.containsKey('safetyConfig')
            ? GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig
                .fromJson(json_['safetyConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );