toJson method

  1. @override
dynamic toJson(
  1. DateTime? object
)

Implementation

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