BodyContentType enum

Content type of a request body passed to ApiClient.invokeApi.

json bodies are JSON-encoded and sent with Content-Type: application/json; octetStream and textPlain pass the body through unchanged and set the matching Content-Type header. multipartFormData is a marker value — the actual send path lives in ApiClient.invokeApiMultipart, which sets the Content-Type with a generated boundary itself.

Inheritance
Available extensions

Values

json → const BodyContentType
const BodyContentType('application/json')
multipartFormData → const BodyContentType
const BodyContentType('multipart/form-data')
octetStream → const BodyContentType
const BodyContentType('application/octet-stream')
textPlain → const BodyContentType
const BodyContentType('text/plain')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

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

Constants

values → const List<BodyContentType>
A constant List of the values in this enum, in order of their declaration.