OpenApiV30Response class final

A documented response and its payload metadata.

Constructors

OpenApiV30Response({required String description, Map<String, OpenApiV30RefOr<OpenApiV30Header>>? headers, Map<String, OpenApiV30MediaType>? content, Map<String, OpenApiV30RefOr<OpenApiV30Link>>? links, Map<String, JsonValue> extensions = const {}, Map<String, JsonValue> extraFields = const {}})
Groups the response description with its payload metadata.

Properties

content → Map<String, OpenApiV30MediaType>?
Representations indexed by media type.
final
description → String
Description supplied by the document author.
final
extensions → Map<String, JsonValue>
Specification extensions keyed by their x- names. Defaults to empty.
finalinherited
extraFields → Map<String, JsonValue>
Unrecognized fields retained for JSON export. Defaults to empty.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, OpenApiV30RefOr<OpenApiV30Header>>?
Header definitions indexed by header name.
final
Links to related operations, indexed by name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

extraToJson() → Map<String, Object?>
Exports extensions and unrecognized fields as JSON.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Returns a detached JSON representation.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited