CategoricalParameterRange.fromJson constructor

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

Implementation

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