CategoricalHyperParameterRange.fromJson constructor

CategoricalHyperParameterRange.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CategoricalHyperParameterRange.fromJson(Map<String, dynamic> json) {
  return CategoricalHyperParameterRange(
    name: json['name'] as String?,
    values: (json['values'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}