openApiDateTimeList function

List<DateTime> openApiDateTimeList(
  1. dynamic json
)

this is the same, but for a json object which is in fact a list of strings

Implementation

List<DateTime> openApiDateTimeList(dynamic json) {
  List<String> dts = (json as List).cast<String>();

  return dts.map((s) => DateTime.parse(s)).toList();
}