toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.accountId != null) {
    json[r'accountId'] = this.accountId;
  } else {
    json[r'accountId'] = null;
  }
    json[r'to'] = this.to;
    json[r'cc'] = this.cc;
    json[r'bcc'] = this.bcc;
    json[r'subject'] = this.subject;
    json[r'body'] = this.body;
  if (this.html != null) {
    json[r'html'] = this.html;
  } else {
    json[r'html'] = null;
  }
    json[r'attachments'] = this.attachments;
  if (this.inReplyTo != null) {
    json[r'inReplyTo'] = this.inReplyTo;
  } else {
    json[r'inReplyTo'] = null;
  }
    json[r'references'] = this.references;
  return json;
}