Class AddressVerificationDeserializer

java.lang.Object
com.easypost.model.AddressVerificationDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<AddressVerification>

public final class AddressVerificationDeserializer extends Object implements com.google.gson.JsonDeserializer<AddressVerification>
  • Constructor Details

    • AddressVerificationDeserializer

      public AddressVerificationDeserializer()
  • Method Details

    • deserialize

      public AddressVerification deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Deserialize an AddressVerification from a JSON object.
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<AddressVerification>
      Parameters:
      json - JSON object to deserialize.
      typeOfT - Type of the object to deserialize.
      context - Deserialization context.
      Returns:
      Deserialized AddressVerification object.
      Throws:
      com.google.gson.JsonParseException - if the JSON object is not a valid SmartrateCollection.