Package com.stripe.model
Class PaymentSourceTypeAdapterFactory
java.lang.Object
com.stripe.model.PaymentSourceTypeAdapterFactory
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public class PaymentSourceTypeAdapterFactory
extends Object
implements com.google.gson.TypeAdapterFactory
Creates type adapter for interface
PaymentSource
able to deserialize raw JSON to subtype
implementation based on discriminator field object
.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> com.google.gson.TypeAdapter<T>
create
(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
-
Constructor Details
-
PaymentSourceTypeAdapterFactory
public PaymentSourceTypeAdapterFactory()
-
-
Method Details
-
create
public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type) - Specified by:
create
in interfacecom.google.gson.TypeAdapterFactory
-