toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'_id'] = this.id;
    json[r'commentId'] = this.commentId;
  if (this.comment != null) {
    json[r'comment'] = this.comment;
  } else {
    json[r'comment'] = null;
  }
  if (this.externalId != null) {
    json[r'externalId'] = this.externalId;
  } else {
    json[r'externalId'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'tenantId'] = this.tenantId;
    json[r'attemptCount'] = this.attemptCount;
    json[r'nextAttemptAt'] = this.nextAttemptAt.toUtc().toIso8601String();
    json[r'eventType'] = this.eventType;
    json[r'type'] = this.type;
    json[r'domain'] = this.domain;
    json[r'lastError'] = this.lastError;
  if (this.webhookId != null) {
    json[r'webhookId'] = this.webhookId;
  } else {
    json[r'webhookId'] = null;
  }
  return json;
}