@override dynamic toJson(DateTime? object) { if (object == null) { return null; } return object.millisecondsSinceEpoch ~/ 1000; }