GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson constructor

GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson(
  1. Map json_
)

Implementation

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