fromMap static method
Implementation
static DateTimeRange? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
return DateTimeRange(
start: map['start'] != null
? DateTime.fromMillisecondsSinceEpoch(map['start'])
: DateTime(0, 0, 0),
end: map['end'] != null
? DateTime.fromMillisecondsSinceEpoch(map['end'])
: DateTime(0, 0, 0),
);
}