toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
json[r'id'] = this.id;
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
json[r'userId'] = this.userId;
json[r'inboxId'] = this.inboxId;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
json[r'to'] = this.to;
json[r'bcc'] = this.bcc;
json[r'cc'] = this.cc;
json[r'aliasId'] = this.aliasId;
return json;
}