dateTimeOf function

DateTime? dateTimeOf(
  1. dynamic json
)

Implementation

DateTime? dateTimeOf(json) {
  if (json == null) return null;
  return DateTime.parse(json.toString());
}