GoogleCloudAiplatformV1StudySpec.fromJson constructor
GoogleCloudAiplatformV1StudySpec.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1StudySpec.fromJson(core.Map json_)
: this(
algorithm: json_.containsKey('algorithm')
? json_['algorithm'] as core.String
: null,
convexAutomatedStoppingSpec:
json_.containsKey('convexAutomatedStoppingSpec')
? GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec
.fromJson(json_['convexAutomatedStoppingSpec']
as core.Map<core.String, core.dynamic>)
: null,
decayCurveStoppingSpec: json_.containsKey('decayCurveStoppingSpec')
? GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec
.fromJson(json_['decayCurveStoppingSpec']
as core.Map<core.String, core.dynamic>)
: null,
measurementSelectionType:
json_.containsKey('measurementSelectionType')
? json_['measurementSelectionType'] as core.String
: null,
medianAutomatedStoppingSpec:
json_.containsKey('medianAutomatedStoppingSpec')
? GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec
.fromJson(json_['medianAutomatedStoppingSpec']
as core.Map<core.String, core.dynamic>)
: null,
metrics: json_.containsKey('metrics')
? (json_['metrics'] as core.List)
.map((value) =>
GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
observationNoise: json_.containsKey('observationNoise')
? json_['observationNoise'] as core.String
: null,
parameters: json_.containsKey('parameters')
? (json_['parameters'] as core.List)
.map((value) =>
GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
studyStoppingConfig: json_.containsKey('studyStoppingConfig')
? GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson(
json_['studyStoppingConfig']
as core.Map<core.String, core.dynamic>)
: null,
);