successResponse property

(int, ResponseOpenApi)? get successResponse

Implementation

(int, ResponseOpenApi)? get successResponse {
  for (final MapEntry(key: code, value: response) in responses.entries) {
    if (code < 200 && code >= 300) continue;
    return (code, response);
  }
  return null;
}