GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.fromJson constructor

GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.fromJson(
    core.Map json_)
    : this(
        metric: json_.containsKey('metric')
            ? GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec
                .fromJson(
                    json_['metric'] as core.Map<core.String, core.dynamic>)
            : null,
        multiTrialAlgorithm: json_.containsKey('multiTrialAlgorithm')
            ? json_['multiTrialAlgorithm'] as core.String
            : null,
        searchTrialSpec: json_.containsKey('searchTrialSpec')
            ? GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec
                .fromJson(json_['searchTrialSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        trainTrialSpec: json_.containsKey('trainTrialSpec')
            ? GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec
                .fromJson(json_['trainTrialSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );