toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'to'] = this.to;
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.cc != null) {
json[r'cc'] = this.cc;
} else {
json[r'cc'] = null;
}
if (this.bcc != null) {
json[r'bcc'] = this.bcc;
} else {
json[r'bcc'] = null;
}
if (this.from != null) {
json[r'from'] = this.from;
} else {
json[r'from'] = null;
}
if (this.useInboxName != null) {
json[r'useInboxName'] = this.useInboxName;
} else {
json[r'useInboxName'] = null;
}
if (this.filterBouncedRecipients != null) {
json[r'filterBouncedRecipients'] = this.filterBouncedRecipients;
} else {
json[r'filterBouncedRecipients'] = null;
}
return json;
}