toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    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;
  }
    json[r'isHTML'] = this.isHTML;
  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;
  }
    json[r'ignoreReplyTo'] = this.ignoreReplyTo;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  return json;
}