APIMediaType class Null safety

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>?
read-onlyinherited
encoding Map<String, APIEncoding?>?
A map between a property name and its encoding information.
read / write
extensions Map<String, dynamic>
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
referenceURI Uri?
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
schema APISchemaObject?
The schema defining the type used for the request body.
read / write

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