APIRequestBody class Null safety

Describes a single request body.

Inheritance

Constructors

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

Properties

castMap Map<String, Cast>?
read-only, inherited
content Map<String, APIMediaType?>?
The content of the request body. [...]
read / write
description String?
A brief description of the request body. [...]
read / write
extensions Map<String, dynamic>
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isRequired bool
Determines if the request body is required in the request. [...]
read / write
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
A string representation of this object. [...]
inherited

Operators

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