APIHeader class Null safety

APIHeader follows the structure of the APIParameter with the following changes:

name MUST NOT be specified, it is given in the corresponding headers map. in MUST NOT be specified, it is implicitly in header. All traits that are affected by the location MUST be applicable to a location of header (for example, style).

Inheritance

Constructors

APIHeader({APISchemaObject? schema})
APIHeader.empty()

Properties

allowEmptyValue bool?
read / writeinherited
allowReserved bool?
Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding.
read / writeinherited
castMap Map<String, Cast>?
read-onlyinherited
content Map<String, APIMediaType?>?
A map containing the representations for the parameter.
read / writeinherited
deprecated bool?
Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
read / writeinherited
description String?
A brief description of the parameter.
read / writeinherited
explode bool?
When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.
read / writeinherited
extensions Map<String, dynamic>
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
isRequired bool?
Determines whether this parameter is mandatory.
read / writeinherited
location APIParameterLocation?
The location of the parameter.
read / writeinherited
name String?
The name of the parameter.
read / writeinherited
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 parameter.
read / writeinherited
style String?
Describes how the parameter value will be serialized depending on the type of the parameter value.
read / writeinherited

Methods

decode(KeyedArchive object) → void
inherited
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