toJson method
Converts the DateTime object to a JSON value.
This method returns the DateTime object as is. The serialization format is
dependent on the implementation of the DateTime class's toString
method.
object
is the DateTime object to be converted to a JSON value.
Returns the DateTime object as a JSON value.
Implementation
@override
DateTime? toJson(DateTime object) => object;