Payload class

Constructors

Payload.fromBinary({required List<int> data, String? filename})
Create a Payload from binary data
factory
Payload.fromFile({required String path, String? filename})
Create a Payload from a file
factory
Payload.fromJson({required Map<String, dynamic> data, String? filename})
Create a Payload from a JSON object
factory
Payload.fromString({required String string, String? filename})
Create a Payload from a string
factory

Properties

data List<int>?
latefinal
filename String?
final
hashCode int
The hash code for this object.
no setterinherited
path String?
latefinal
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
toBinary({int offset = 0, int? length}) List<int>
Convert to binary, with optional offset and length
toJson() Map<String, dynamic>
Convert binary data to JSON object
toString() String
Convert binary data to string (utf8)
override

Operators

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