toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.markup != null) {
    json[r'markup'] = this.markup;
  } else {
    json[r'markup'] = null;
  }
  if (this.body != null) {
    json[r'body'] = this.body;
  } else {
    json[r'body'] = null;
  }
  if (this.deliveredByClerk != null) {
    json[r'delivered_by_clerk'] = this.deliveredByClerk;
  } else {
    json[r'delivered_by_clerk'] = null;
  }
  if (this.fromEmailName != null) {
    json[r'from_email_name'] = this.fromEmailName;
  } else {
    json[r'from_email_name'] = null;
  }
  if (this.replyToEmailName != null) {
    json[r'reply_to_email_name'] = this.replyToEmailName;
  } else {
    json[r'reply_to_email_name'] = null;
  }
  return json;
}