ResponseObjectV2 class
Response object representing a single response from an API operation.
- Inheritance
-
- Object
- OpenApiObject<
Map< String, dynamic> > - ResponseObjectV2
Constructors
-
ResponseObjectV2({required String description, Map<
String, HeaderObjectV2> ? headers, Object? schema, Map<String, dynamic> ? examples}) - Creates a ResponseObjectV2 with the given parameters.
- ResponseObjectV2.fromMap(Map map)
-
Creates a ResponseObjectV2 from a map.
factory
Properties
- description ↔ String
-
A short description of the response.
getter/setter pair
-
examples
↔ Map<
String, dynamic> ? -
Examples of the response body.
getter/setter pair
-
extensions
→ Map<
String, dynamic> ? -
Vendor-specific extension fields (
x-*) merged into the object.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, HeaderObjectV2> ? -
The HTTP status code of the response.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema ↔ Object?
-
The schema defining the type used for the response body.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Converts the OpenApiObject to a map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited