@override Map<String, dynamic> toJSON() { Map<String, dynamic> json = {'interval': interval.toJSON()}; if (first != null) { json = {...json, 'first': first?.toUtc().toIso8601String()}; } return json; }