Content class

This class contains binary input or output data and indicates the media type this data is encoded in.

Implementers

Constructors

Content(String type, Stream<List<int>> body)
Creates a new Content object from a media type and a body.
Content.fromInteractionInput(InteractionInput? interactionInput, String contentType, ContentSerdes contentSerdes, DataSchema? dataSchema)
Creates a new Content object from an interactionInput.
factory

Properties

body Stream<List<int>>
The payload as a byte Stream.
final
byteBuffer Future<ByteBuffer>
Converts the body of the content to a ByteBuffer asynchronously.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The media type corresponding with this Content object.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toByteList() Future<List<int>>
Converts the body of this Content to a List of bytes asynchronously.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited