Attachment class

For referring to data content defined in other formats.

Annotations
  • @freezed

Constructors

Attachment({@JsonKey(name: 'ID') String? id, @JsonKey(name: 'ContentType') String? contentType, @JsonKey(name: 'Language') String? language, @JsonKey(name: 'Data') String? data, @JsonKey(name: 'Url') String? url, @JsonKey(name: 'Size') int? size, @JsonKey(name: 'Hash') String? hash, @JsonKey(name: 'Title') String? title, @JsonKey(name: 'Creation') String? creation})
factory
Attachment.fromJson(Map<String, dynamic> json)
factory

Properties

contentType String?
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
no setterinherited
copyWith → $AttachmentCopyWith<Attachment>
no setterinherited
creation String?
The date that the attachment was first created.
no setterinherited
data String?
The actual data of the attachment - a sequence of bytes, base64 encoded.
no setterinherited
hash String?
The calculated hash of the data using SHA-1. Represented using base64.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
no setterinherited
language String?
The human language of the content. The value can be any valid value according to BCP 47.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
no setterinherited
title String?
A label or set of text to display in place of the data.
no setterinherited
url String?
A location where the data can be accessed.
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