GoogleCloudMlV1StudyConfigParameterSpec.fromJson constructor

GoogleCloudMlV1StudyConfigParameterSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1StudyConfigParameterSpec.fromJson(core.Map json_)
    : this(
        categoricalValueSpec: json_.containsKey('categoricalValueSpec')
            ? GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec
                .fromJson(json_['categoricalValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        childParameterSpecs: json_.containsKey('childParameterSpecs')
            ? (json_['childParameterSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudMlV1StudyConfigParameterSpec.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        discreteValueSpec: json_.containsKey('discreteValueSpec')
            ? GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
                .fromJson(json_['discreteValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        doubleValueSpec: json_.containsKey('doubleValueSpec')
            ? GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec.fromJson(
                json_['doubleValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        integerValueSpec: json_.containsKey('integerValueSpec')
            ? GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec
                .fromJson(json_['integerValueSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parameter: json_.containsKey('parameter')
            ? json_['parameter'] as core.String
            : null,
        parentCategoricalValues: json_.containsKey('parentCategoricalValues')
            ? GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec
                .fromJson(json_['parentCategoricalValues']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parentDiscreteValues: json_.containsKey('parentDiscreteValues')
            ? GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec
                .fromJson(json_['parentDiscreteValues']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parentIntValues: json_.containsKey('parentIntValues')
            ? GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec
                .fromJson(json_['parentIntValues']
                    as core.Map<core.String, core.dynamic>)
            : null,
        scaleType: json_.containsKey('scaleType')
            ? json_['scaleType'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );