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

content ↔ Map<String, APIMediaType>
The content of the request body. [...]
read / write
description ↔ String
A brief description of the request body. [...]
read / write
isRequired ↔ bool
Determines if the request body is required in the request. [...]
read / write
castMap → Map<String, Cast>
read-only, inherited
extensions ↔ Map<String, dynamic>
read / write, inherited
hashCode → int
The hash code for this object.
read-only, inherited
referenceURI ↔ Uri
read / write, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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