toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'seen'] = this.seen;
if (this.recipient != null) {
json[r'recipient'] = this.recipient;
} else {
json[r'recipient'] = null;
}
json[r'html'] = this.html;
json[r'url'] = this.url;
if (this.inboxId != null) {
json[r'inboxId'] = this.inboxId;
} else {
json[r'inboxId'] = null;
}
if (this.sentEmailId != null) {
json[r'sentEmailId'] = this.sentEmailId;
} else {
json[r'sentEmailId'] = null;
}
if (this.seenAt != null) {
json[r'seenAt'] = this.seenAt!.toUtc().toIso8601String();
} else {
json[r'seenAt'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
return json;
}