ApiBodyType enum

Request body types, matching every option in Postman's Body tab.

Inheritance
Available extensions

Values

none → const ApiBodyType

No body is sent.

formData → const ApiBodyType

multipart/form-data — supports text fields and file uploads.

xWwwFormUrlencoded → const ApiBodyType

application/x-www-form-urlencoded — URL-encoded key/value pairs.

raw → const ApiBodyType

Raw text body (JSON, plain text, XML, HTML, or JavaScript).

binary → const ApiBodyType

Binary file or byte-array upload.

graphQL → const ApiBodyType

GraphQL query + variables, sent as JSON.

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

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<ApiBodyType>
A constant List of the values in this enum, in order of their declaration.