parseDateTime function
Parses ISO-8601, yyyy-MM-dd HH:mm:ss and epoch values as UTC.
Implementation
DateTime? parseDateTime(Object? raw) => switch (raw) {
null => null,
DateTime() => raw,
int() => DateTime.fromMillisecondsSinceEpoch(raw, isUtc: true),
String() => _parseStringDate(raw),
_ => null,
};