openApiDateTimeFromJson function

DateTime openApiDateTimeFromJson(
  1. dynamic json
)

this exists because we otherwise need an extension method DateTime.fromJson and i don't want to clash with other libs

Implementation

DateTime openApiDateTimeFromJson(dynamic json) {
  return DateTime.parse(json as String);
}