Class EphemeralKeyDeserializer

java.lang.Object
com.stripe.model.EphemeralKeyDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<EphemeralKey>

public class EphemeralKeyDeserializer extends Object implements com.google.gson.JsonDeserializer<EphemeralKey>
  • Constructor Details

    • EphemeralKeyDeserializer

      public EphemeralKeyDeserializer()
  • Method Details

    • deserialize

      public EphemeralKey deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Deserializes an ephemeral_key JSON payload into an EphemeralKey object.
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<EphemeralKey>
      Throws:
      com.google.gson.JsonParseException