Class BalanceTransactionSourceTypeAdapterFactory

java.lang.Object
com.stripe.model.BalanceTransactionSourceTypeAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory

public class BalanceTransactionSourceTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
Creates type adapter for interface BalanceTransactionSource able to deserialize raw JSON to subtype implementation based on discriminator field object.
  • Constructor Details

    • BalanceTransactionSourceTypeAdapterFactory

      public BalanceTransactionSourceTypeAdapterFactory()
  • 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