Attachment class

Content in a format defined elsewhere.

Constructors

Attachment({String? contentType, String? language, String? data, String? url, String? size, String? hash, String? title, String? creation})
Creates an instance of Attachment.
Attachment.fromJson(JsonObject _json)
Creates an instance of Attachment from a JSON object.

Properties

contentType String?
Mime type of the content, with charset etc.
no setter
creation String?
Date attachment was first created.
no setter
data String?
Data inline, base64ed.
no setter
hash String?
Hash of the data (sha-1, base64ed).
no setter
hashCode int
The hash code for this object.
no setterinherited
json → JsonObject
Converts the Attachment instance to a JSON object.
no setter
language String?
Human language of the content (BCP-47).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size String?
Number of bytes of content (if url provided).
no setter
title String?
Label to display in place of the data.
no setter
url String?
Uri where the data can be found.
no setter

Methods

copyWith({String? contentType, String? language, String? data, String? url, String? size, String? hash, String? title, String? creation}) Attachment
Creates a copy of the Attachment instance and allows for non-destructive mutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

contentTypeField → const FieldDefinition<String>
Field definition for contentType.
creationField → const FieldDefinition<String>
Field definition for creation.
dataField → const FieldDefinition<String>
Field definition for data.
fieldDefinitions → const List<FieldDefinition<String>>
All field definitions for Attachment.
hashField → const FieldDefinition<String>
Field definition for hash.
languageField → const FieldDefinition<String>
Field definition for language.
sizeField → const FieldDefinition<String>
Field definition for size.
titleField → const FieldDefinition<String>
Field definition for title.
urlField → const FieldDefinition<String>
Field definition for url.