toJson method

  1. @override
Map<String, Object?> toJson()
override

The tagged JSON form, a single-key map ({'range': {...}}).

Implementation

@override
Map<String, Object?> toJson() => {
  'range': {if (min != null) 'min': min, if (max != null) 'max': max},
};