Package com.stripe.model
Class ExternalAccountTypeAdapterFactory
java.lang.Object
com.stripe.model.ExternalAccountTypeAdapterFactory
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public class ExternalAccountTypeAdapterFactory
extends Object
implements com.google.gson.TypeAdapterFactory
Creates type adapter for interface
ExternalAccount
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
-
ExternalAccountTypeAdapterFactory
public ExternalAccountTypeAdapterFactory()
-
-
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
-