GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson constructor

GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson(core.Map json_)
    : this(
        maxDurationNoProgress: json_['maxDurationNoProgress'] as core.String?,
        maxNumTrials: json_['maxNumTrials'] as core.int?,
        maxNumTrialsNoProgress: json_['maxNumTrialsNoProgress'] as core.int?,
        maximumRuntimeConstraint:
            json_.containsKey('maximumRuntimeConstraint')
                ? GoogleCloudAiplatformV1StudyTimeConstraint.fromJson(
                    json_['maximumRuntimeConstraint']
                        as core.Map<core.String, core.dynamic>)
                : null,
        minNumTrials: json_['minNumTrials'] as core.int?,
        minimumRuntimeConstraint:
            json_.containsKey('minimumRuntimeConstraint')
                ? GoogleCloudAiplatformV1StudyTimeConstraint.fromJson(
                    json_['minimumRuntimeConstraint']
                        as core.Map<core.String, core.dynamic>)
                : null,
        shouldStopAsap: json_['shouldStopAsap'] as core.bool?,
      );