failedResponses property

Map<int, ResponseOpenApi> get failedResponses

Implementation

Map<int, ResponseOpenApi> get failedResponses {
  return Map.fromEntries(responses.entries.where((e) {
    final MapEntry(key: code) = e;
    return code < 200 && code >= 300;
  }));
}