Skip to content

Commit

Permalink
fix: Use correct keys when parsing action URL and custom Attributes f…
Browse files Browse the repository at this point in the history
…rom notification response (#16)
  • Loading branch information
stigi authored Apr 28, 2024
1 parent 0f10f3f commit c49521d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ data class Notification(
val id: String,
val title: String,
val content: String? = null,
@SerialName("action_url")
@SerialName("actionUrl")
@JsonNames("action_url")
val actionURL: String? = null,
val category: String? = null,
val topic: String? = null,
@SerialName("custom_attributes")
@SerialName("customAttributes")
@JsonNames("custom_attributes")
val customAttributes: JsonObject? = null,
val recipient: Recipient? = null,
@Serializable(with = DateSerializer::class)
Expand Down

0 comments on commit c49521d

Please sign in to comment.