toJson method
Implementation
Map<String, dynamic> toJson() {
final count = this.count;
final interval = this.interval;
final intervalUnit = this.intervalUnit;
return {
if (count != null) 'Count': count,
if (interval != null) 'Interval': interval,
if (intervalUnit != null) 'IntervalUnit': intervalUnit.toValue(),
};
}