@override List<Timestamp>? toJson(List<DateTime>? dates) { return dates?.map((e) => Timestamp.fromDate(e)).toList(); }