Class ExpandableFieldDeserializer

java.lang.Object
com.stripe.model.ExpandableFieldDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ExpandableField<?>>

public class ExpandableFieldDeserializer extends Object implements com.google.gson.JsonDeserializer<ExpandableField<?>>
  • Constructor Details

    • ExpandableFieldDeserializer

      public ExpandableFieldDeserializer()
  • Method Details

    • deserialize

      public ExpandableField<?> deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Deserializes an expandable field JSON payload (i.e. either a string with just the ID, or a full JSON object) into an ExpandableField object.
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ExpandableField<?>>
      Throws:
      com.google.gson.JsonParseException