GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec.fromJson constructor

GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec.fromJson(
    core.Map json_)
    : this(
        defaultValue: json_.containsKey('defaultValue')
            ? (json_['defaultValue'] as core.num).toDouble()
            : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => (value as core.num).toDouble())
                .toList()
            : null,
      );