mappedToDateTime static method

DateTime mappedToDateTime(
  1. Map<String, dynamic> value
)

Implementation

static DateTime mappedToDateTime(Map<String, dynamic> value) {
  final rawDt = value['\$'];

  final formatter = DateFormat(r'E MMM  d HH:mm:ss yyyy');

  return DateTime.tryParse(rawDt) ?? formatter.parse(rawDt);
}