APIMediaType class

Each APIMediaType provides schema and examples for the media type identified by its key.

Inheritance

Constructors

APIMediaType({APISchemaObject? schema, Map<String, APIEncoding?>? encoding})
APIMediaType.empty()

Properties

castMap → Map<String, Cast>?
no setterinherited
encoding ↔ Map<String, APIEncoding?>?
A map between a property name and its encoding information.
getter/setter pair
extensions ↔ Map<String, dynamic>
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
referenceURI ↔ Uri?
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema ↔ APISchemaObject?
The schema defining the type used for the request body.
getter/setter pair

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