APIRequestBody class

Describes a single request body.

Inheritance

Constructors

APIRequestBody(Map<String, APIMediaType>? content, {String? description, bool? required})
APIRequestBody.empty()
APIRequestBody.schema(APISchemaObject schema, {Iterable<String> contentTypes = const ["application/json"], String? description, bool? required})

Properties

castMap Map<String, Cast>
no setterinherited
content Map<String, APIMediaType>?
The content of the request body.
getter/setter pair
description String?
A brief description of the request body.
getter/setter pair
extensions Map<String, dynamic>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isRequired bool
Determines if the request body is required in the request.
getter/setter pair
referenceURI Uri
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(KeyedArchive object) → void
override
encode(KeyedArchive object) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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