HyperParameterSpecification.fromJson constructor
HyperParameterSpecification.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HyperParameterSpecification.fromJson(Map<String, dynamic> json) {
return HyperParameterSpecification(
name: json['Name'] as String,
type: (json['Type'] as String).toParameterType(),
defaultValue: json['DefaultValue'] as String?,
description: json['Description'] as String?,
isRequired: json['IsRequired'] as bool?,
isTunable: json['IsTunable'] as bool?,
range: json['Range'] != null
? ParameterRange.fromJson(json['Range'] as Map<String, dynamic>)
: null,
);
}