diff --git a/platforms/android/alexa-auto-client-service/commonutils/aacscommonutils/src/main/java/com/amazon/alexa/auto/aacs/common/RenderPlayerInfo.kt b/platforms/android/alexa-auto-client-service/commonutils/aacscommonutils/src/main/java/com/amazon/alexa/auto/aacs/common/RenderPlayerInfo.kt index 17d630437..537468356 100644 --- a/platforms/android/alexa-auto-client-service/commonutils/aacscommonutils/src/main/java/com/amazon/alexa/auto/aacs/common/RenderPlayerInfo.kt +++ b/platforms/android/alexa-auto-client-service/commonutils/aacscommonutils/src/main/java/com/amazon/alexa/auto/aacs/common/RenderPlayerInfo.kt @@ -1,5 +1,6 @@ package com.amazon.alexa.auto.aacs.common +import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import java.util.* @@ -47,8 +48,12 @@ data class PlaybackControl ( @JsonClass(generateAdapter = true) data class RenderPlayerInfoPayload ( val content : RenderPlayerContent, - val controls : List -) + @Json(name = "controls") + val _controls : List? +) { + // Expose non nullable playback controls + val controls : List = _controls.orEmpty() +} @JsonClass(generateAdapter = true) data class RenderPlayerInfo (