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'emailId'] = this.emailId;
    json[r'inboxId'] = this.inboxId;
    json[r'emailIsRead'] = this.emailIsRead;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  return json;
}