RequestBody class
Text
- Annotations
-
- @freezed
Constructors
-
RequestBody.new({String? description, bool? required, Map<
String, MediaType> ? content, @JsonKey(name: '\$ref') @_RequestRefConverter() String? ref}) -
constfactory
-
RequestBody.fromJson(Map<
String, dynamic> json) -
Construct an instance of RequestBody from a JSON map
factory
Properties
-
content
→ Map<
String, MediaType> ? -
The content of the request body.
no setterinherited
-
copyWith
→ $RequestBodyCopyWith<
RequestBody> -
Create a copy of RequestBody
with the given fields replaced by the non-null parameter values.
no setterinherited
- description → String?
-
A brief description of the request body.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ref → String?
-
Reference to a response defined in
Components.requestBodies
no setterinherited - required → bool?
-
Determines if the request body is required in the request.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dereference(
{required Map< String, RequestBody> ? components}) → RequestBody -
map<
TResult extends Object?> (TResult $default(_RequestBody value)) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> (TResult? $default(_RequestBody value)?) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_RequestBody value)?, {required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this RequestBody to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited