toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final minRange = this.minRange;
  final maxRange = this.maxRange;
  return {
    'MinRange': minRange,
    if (maxRange != null) 'MaxRange': maxRange,
  };
}