GoogleCloudMlV1ParameterSpec.fromJson constructor
GoogleCloudMlV1ParameterSpec.fromJson(
- Map json_
Implementation
GoogleCloudMlV1ParameterSpec.fromJson(core.Map json_)
: this(
categoricalValues: json_.containsKey('categoricalValues')
? (json_['categoricalValues'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
discreteValues: json_.containsKey('discreteValues')
? (json_['discreteValues'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
maxValue: json_.containsKey('maxValue')
? (json_['maxValue'] as core.num).toDouble()
: null,
minValue: json_.containsKey('minValue')
? (json_['minValue'] as core.num).toDouble()
: null,
parameterName: json_.containsKey('parameterName')
? json_['parameterName'] as core.String
: null,
scaleType: json_.containsKey('scaleType')
? json_['scaleType'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);