toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'userId'] = this.userId;
if (this.inboxId != null) {
json[r'inboxId'] = this.inboxId;
} else {
json[r'inboxId'] = null;
}
json[r'webhookId'] = this.webhookId;
json[r'webhookUrl'] = this.webhookUrl;
json[r'messageId'] = this.messageId;
if (this.redriveId != null) {
json[r'redriveId'] = this.redriveId;
} else {
json[r'redriveId'] = null;
}
json[r'httpMethod'] = this.httpMethod;
json[r'webhookEvent'] = this.webhookEvent;
if (this.responseStatus != null) {
json[r'responseStatus'] = this.responseStatus;
} else {
json[r'responseStatus'] = null;
}
json[r'responseTimeMillis'] = this.responseTimeMillis;
if (this.responseBodyExtract != null) {
json[r'responseBodyExtract'] = this.responseBodyExtract;
} else {
json[r'responseBodyExtract'] = null;
}
if (this.resultType != null) {
json[r'resultType'] = this.resultType;
} else {
json[r'resultType'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
json[r'seen'] = this.seen;
return json;
}