public class DirectMethodPayload
extends java.lang.Object
| Constructor and Description |
|---|
DirectMethodPayload() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getPayload(java.lang.Class<T> clazz)
Return the DirectMethodPayload payload in a custom type of your choosing
|
com.google.gson.JsonElement |
getPayloadAsJsonElement()
Return the DirectMethodPayload payload in JsonElement type
|
java.lang.String |
getPayloadAsJsonString()
Return the DirectMethodPayload payload in json string
Use this if you wish to deserialize to a specific type using a deserialization library of your choice
|
public com.google.gson.JsonElement getPayloadAsJsonElement()
public java.lang.String getPayloadAsJsonString()
public <T> T getPayload(java.lang.Class<T> clazz)
clazz - the Custom type into which the payload can be deserializedCopyright © 2023. All rights reserved.