mappedToStdDateTime static method

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

Implementation

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

  final formatter = DateFormat('YYYY-MM-dd\'T\'HH:mm:ss\'Z\'');

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