GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec.fromJson constructor

GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec.fromJson(
    core.Map json_)
    : this(
        maxFailedTrialCount: json_.containsKey('maxFailedTrialCount')
            ? json_['maxFailedTrialCount'] as core.int
            : null,
        maxParallelTrialCount: json_.containsKey('maxParallelTrialCount')
            ? json_['maxParallelTrialCount'] as core.int
            : null,
        maxTrialCount: json_.containsKey('maxTrialCount')
            ? json_['maxTrialCount'] as core.int
            : null,
        searchTrialJobSpec: json_.containsKey('searchTrialJobSpec')
            ? GoogleCloudAiplatformV1CustomJobSpec.fromJson(
                json_['searchTrialJobSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );