toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'inboxId'] = this.inboxId;
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
    json[r'field'] = this.field;
    json[r'match'] = this.match;
  if (this.replyTo != null) {
    json[r'replyTo'] = this.replyTo;
  } else {
    json[r'replyTo'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.from != null) {
    json[r'from'] = this.from;
  } else {
    json[r'from'] = null;
  }
  if (this.charset != null) {
    json[r'charset'] = this.charset;
  } else {
    json[r'charset'] = null;
  }
  if (this.ignoreReplyTo != null) {
    json[r'ignoreReplyTo'] = this.ignoreReplyTo;
  } else {
    json[r'ignoreReplyTo'] = null;
  }
  if (this.isHTML != null) {
    json[r'isHTML'] = this.isHTML;
  } else {
    json[r'isHTML'] = null;
  }
  if (this.body != null) {
    json[r'body'] = this.body;
  } else {
    json[r'body'] = null;
  }
  if (this.templateId != null) {
    json[r'templateId'] = this.templateId;
  } else {
    json[r'templateId'] = null;
  }
  if (this.templateVariables != null) {
    json[r'templateVariables'] = this.templateVariables;
  } else {
    json[r'templateVariables'] = null;
  }
  return json;
}