Email class

An email in the Instantly API.

Annotations
  • @freezed

Constructors

Email.new({required String id, @JsonKey(name: 'message_id') required String messageId, @JsonKey(name: 'is_unread') required bool isUnread, String? lead, @JsonKey(name: 'campaign_id') String? campaignId, @JsonKey(name: 'from_address_email') required String fromAddressEmail, @JsonKey(name: 'from_address_json') required List<EmailAddress> fromAddressJson, @JsonKey(name: 'ai_interest_value') double? aiInterestValue, @JsonKey(name: 'reminder_ts') DateTime? reminderTs, @JsonKey(name: 'i_status') int? iStatus, required String subject, @JsonKey(name: 'timestamp_created') required DateTime timestampCreated, @JsonKey(name: 'content_preview') String? contentPreview, @JsonKey(name: 'thread_id') String? threadId, @JsonKey(name: 'eaccount') String? eaccount, @JsonKey(name: 'to_address_email_list') List<String>? toAddressEmailList, @JsonKey(name: 'to_address_json') List<EmailAddress>? toAddressJson, @JsonKey(name: 'ue_type') int? ueType, @JsonKey(name: 'scheduled_at') DateTime? scheduledAt, @JsonKey(name: 'cc_address_email_list') List<String>? ccAddressEmailList, @JsonKey(name: 'cc_address_json') List<EmailAddress>? ccAddressJson, @JsonKey(name: 'bcc_address_email_list') List<String>? bccAddressEmailList})
Default constructor for the email.
const
factory
Email.fromJson(Map<String, dynamic> json)
Create an email from a JSON object.
factory

Properties

aiInterestValue double?
no setterinherited
bccAddressEmailList List<String>?
no setterinherited
campaignId String?
no setterinherited
ccAddressEmailList List<String>?
no setterinherited
ccAddressJson List<EmailAddress>?
no setterinherited
contentPreview String?
no setterinherited
copyWith → $EmailCopyWith<Email>
no setterinherited
eaccount String?
no setterinherited
fromAddressEmail String
no setterinherited
fromAddressJson List<EmailAddress>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
iStatus int?
no setterinherited
isUnread bool
no setterinherited
lead String?
no setterinherited
messageId String
no setterinherited
reminderTs DateTime?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduledAt DateTime?
no setterinherited
subject String
no setterinherited
threadId String?
no setterinherited
timestampCreated DateTime
no setterinherited
toAddressEmailList List<String>?
no setterinherited
toAddressJson List<EmailAddress>?
no setterinherited
ueType int?
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