GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson constructor

GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson(core.Map json_)
    : this(
        categoricalValueSpec: json_.containsKey('categoricalValueSpec')
            ? GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec
                .fromJson(json_['categoricalValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        conditionalParameterSpecs: json_
                .containsKey('conditionalParameterSpecs')
            ? (json_['conditionalParameterSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        discreteValueSpec: json_.containsKey('discreteValueSpec')
            ? GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec
                .fromJson(json_['discreteValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        doubleValueSpec: json_.containsKey('doubleValueSpec')
            ? GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec
                .fromJson(json_['doubleValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        integerValueSpec: json_.containsKey('integerValueSpec')
            ? GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec
                .fromJson(json_['integerValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parameterId: json_.containsKey('parameterId')
            ? json_['parameterId'] as core.String
            : null,
        scaleType: json_.containsKey('scaleType')
            ? json_['scaleType'] as core.String
            : null,
      );