public static interface EventDataObjectDeserializer.CompatibilityTransformer
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonObject |
transform(com.google.gson.JsonObject rawJsonObject,
java.lang.String apiVersion,
java.lang.String eventType)
Transform event data object JSON into a schema compatible with model classes of the library.
|
com.google.gson.JsonObject transform(com.google.gson.JsonObject rawJsonObject, java.lang.String apiVersion, java.lang.String eventType)
EventDataObjectDeserializer.deserializeUnsafeWith(CompatibilityTransformer)
. the resulting
JSON will be deserialized to StripeObject
.rawJsonObject
- event data object JSON to be transformed. Direct mutation is allowed.apiVersion
- API version of the event data objecteventType
- event type to which this event data object belongs to.