Attachment class

Details about an attachment.

Constructors

Attachment({UserDetails? author, String? content, DateTime? created, String? filename, String? id, String? mimeType, String? self, int? size, String? thumbnail})
Attachment.fromJson(Map<String, Object?> json)
factory

Properties

author → UserDetails?
Details of the user who added the attachment.
final
content → String?
The content of the attachment.
final
created → DateTime?
The datetime the attachment was created.
final
filename → String?
The file name of the attachment.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The ID of the attachment.
final
mimeType → String?
The MIME type of the attachment.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
self → String?
The URL of the attachment details response.
final
size → int?
The size of the attachment.
final
thumbnail → String?
The URL of a thumbnail representing the attachment.
final

Methods

copyWith({UserDetails? author, String? content, DateTime? created, String? filename, String? id, String? mimeType, String? self, int? size, String? thumbnail}) → Attachment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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