parseJsonMessage

@IviExperimental(reasons = [])
inline fun <T : Any> parseJsonMessage(message: String): T?

Decodes the message in JSON format into an object of type T.

This utility function can be used to parse the Alexa Auto Services Bridge (AASB) messages. These are messages sent via android.content.Intents from the Alexa Auto Client Service (AACS).

More information about the AACS is available on the Alexa Auto Client Service (AACS) documentation page.

The AASB message specification is available on the Alexa Auto AASB specification documentation page.

Return

Object of type T, if the message could be parsed, null otherwise.

Throws

if the decoded input is not a valid instance of T.