fromJson static method

DateTime fromJson(
  1. dynamic value
)

Returns a deserialized version of the DateTime.

Implementation

static DateTime fromJson(dynamic value) {
  if (value is DateTime) return value;
  return DateTime.parse(value as String);
}