Attachment class
An Attachment contains metadata about a file that was uploaded to a case - it is NOT a file itself.
That being said, the name of an Attachment object can be used to download
its accompanying file through the media.download
endpoint. While
attachments can be uploaded in the console at the same time as a comment,
they're associated on a "case" level, not a "comment" level.
Constructors
- Attachment({String? createTime, Actor? creator, String? filename, String? mimeType, String? name, String? sizeBytes})
- Attachment.fromJson(Map json_)
Properties
- createTime ↔ String?
-
The time at which the attachment was created.
getter/setter pair
- creator ↔ Actor?
-
The user who uploaded the attachment.
getter/setter pair
- filename ↔ String?
-
The filename of the attachment (e.g.
"graph.jpg"
).getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType ↔ String?
-
The MIME type of the attachment (e.g. text/plain).
getter/setter pair
- name ↔ String?
-
The resource name of the attachment.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeBytes ↔ String?
-
The size of the attachment in bytes.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited