Map<String, dynamic> toMap() { return { 'start': start.millisecondsSinceEpoch, 'end': end.millisecondsSinceEpoch, }; }