ParameterRanges.fromJson constructor

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

Implementation

factory ParameterRanges.fromJson(Map<String, dynamic> json) {
  return ParameterRanges(
    categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?)
        ?.whereNotNull()
        .map((e) =>
            CategoricalParameterRange.fromJson(e as Map<String, dynamic>))
        .toList(),
    continuousParameterRanges: (json['ContinuousParameterRanges'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ContinuousParameterRange.fromJson(e as Map<String, dynamic>))
        .toList(),
    integerParameterRanges: (json['IntegerParameterRanges'] as List?)
        ?.whereNotNull()
        .map((e) => IntegerParameterRange.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}