OpenApiResponse constructor

const OpenApiResponse({
  1. required int statusCode,
  2. String? description,
  3. List<Field<Object>>? properties,
})

Creates an OpenAPI response object.

Parameters:

  • statusCode The HTTP status code of the response (required).
  • description A description of the response (optional).
  • properties A list of fields that define the response body (optional).

Implementation

const OpenApiResponse({
  required this.statusCode,
  this.description,
  this.properties,
});