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-onlyinherited
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 / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
isRequired bool
Determines if the request body is required in the request.
read / write
referenceURI Uri?
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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