diff --git a/src/main/kotlin/com/nylas/models/WebhookDeleteResponse.kt b/src/main/kotlin/com/nylas/models/WebhookDeleteResponse.kt index 15e330e6..6e7adff3 100644 --- a/src/main/kotlin/com/nylas/models/WebhookDeleteResponse.kt +++ b/src/main/kotlin/com/nylas/models/WebhookDeleteResponse.kt @@ -1,5 +1,7 @@ package com.nylas.models +import com.squareup.moshi.Json + /** * Class representing a Nylas webhook delete response. */ @@ -7,10 +9,12 @@ data class WebhookDeleteResponse( /** * ID of the request. */ + @Json(name = "request_id") val requestId: String, /** * Object containing the webhook deletion status. */ + @Json(name = "data") val data: DataWebhookDeleteData? = null, ) { /** @@ -20,6 +24,7 @@ data class WebhookDeleteResponse( /** * The status of the webhook deletion. */ - val status: Boolean, + @Json(name = "status") + val status: String, ) }