APIMediaType class Null safety
Each APIMediaType provides schema and examples for the media type identified by its key.
Constructors
-
APIMediaType({APISchemaObject? schema, Map<
String, APIEncoding> ? encoding}) - APIMediaType.empty()
Properties
-
castMap
→ Map<
String, Cast> -
read-only, inherited
-
encoding
↔ Map<
String, APIEncoding> ? -
A map between a property name and its encoding information. [...]
read / write
-
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
- 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