Map<String, dynamic> toJson() { final interval = this.interval; return { 'Interval': interval.toValue(), }; }