Attachment class

Represents an Attachment object as is, directly provided from mailtm API

Annotations
  • @freezed

Constructors

Attachment({required String id, @Default('') String name, @Default('') String type, required String disposition, @Default('') dynamic encoding, required bool related, required int size, required String downloadUrl})
Attachment constructor. MUST NOT be used manually Use MailTm and AuthorizedUser
const
factory
Attachment.fromJson(Map<String, Object?> json)
Attachment jsonizer. Allows freezed to add a from/toJson
factory

Properties

copyWith → $AttachmentCopyWith<Attachment>
no setterinherited
disposition String
The attachment disposition.
no setterinherited
downloadUrl String
The attachment downloadUrl.
no setterinherited
encoding → dynamic
The attachment transferEncoding.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The attachment id.
no setterinherited
name String
The attachment name.
no setterinherited
Undocumented, seems to always be true
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The attachment size.
no setterinherited
type String
The attachment contentType.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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