toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'body'] = this.body;
    json[r'isHTML'] = this.isHTML;
  if (this.charset != null) {
    json[r'charset'] = this.charset;
  } else {
    json[r'charset'] = null;
  }
  if (this.attachments != null) {
    json[r'attachments'] = this.attachments;
  } else {
    json[r'attachments'] = null;
  }
  if (this.templateVariables != null) {
    json[r'templateVariables'] = this.templateVariables;
  } else {
    json[r'templateVariables'] = null;
  }
  if (this.template != null) {
    json[r'template'] = this.template;
  } else {
    json[r'template'] = null;
  }
  if (this.sendStrategy != null) {
    json[r'sendStrategy'] = this.sendStrategy;
  } else {
    json[r'sendStrategy'] = null;
  }
  if (this.useInboxName != null) {
    json[r'useInboxName'] = this.useInboxName;
  } else {
    json[r'useInboxName'] = null;
  }
  if (this.html != null) {
    json[r'html'] = this.html;
  } else {
    json[r'html'] = null;
  }
  return json;
}