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.
  • 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 interface com.google.gson.TypeAdapterFactory