toJson method
Implementation
Map<String, dynamic> toJson() {
final maxValue = this.maxValue;
final minValue = this.minValue;
final name = this.name;
return {
if (maxValue != null) 'maxValue': maxValue,
if (minValue != null) 'minValue': minValue,
if (name != null) 'name': name,
};
}