Attachment class

Represents a S3I::B::Attachment - an optional field of a UserMessage.

Constructors

Attachment({String filename = '', String data = ''})
Creates an Attachment with a filename and data (both empty by default).
Attachment.fromJson(Map<String, dynamic> json)
Returns an Attachment with a filename and the corresponding data from json.
factory

Properties

data String
The data of this attachment encoded as base64 string.
getter/setter pair
filename String
The name of the file stored in data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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
toJson() Map<String, dynamic>
Returns the information stored in this object in a way the it could be encoded via jsonEncode().
toString() String
A string representation of this object.
inherited

Operators

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