fromJson method
Converts the JSON value to a DateTime object.
If the JSON value is null, it returns a default DateTime object representing
2000-01-01 00:00
.
json
is the JSON value to be converted to a DateTime object.
Returns a DateTime object.
Implementation
@override
DateTime fromJson(DateTime? json) =>
json ?? DateTime.parse('2000-01-01 00:00');