toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'messageId'] = this.messageId;
    json[r'webhookId'] = this.webhookId;
    json[r'eventName'] = this.eventName;
  if (this.webhookName != null) {
    json[r'webhookName'] = this.webhookName;
  } else {
    json[r'webhookName'] = null;
  }
    json[r'bounceId'] = this.bounceId;
  if (this.sentToRecipients != null) {
    json[r'sentToRecipients'] = this.sentToRecipients;
  } else {
    json[r'sentToRecipients'] = null;
  }
    json[r'sender'] = this.sender;
  if (this.bounceRecipients != null) {
    json[r'bounceRecipients'] = this.bounceRecipients;
  } else {
    json[r'bounceRecipients'] = null;
  }
  return json;
}