Class ErrorDeserializer

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

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

    • ErrorDeserializer

      public ErrorDeserializer()
  • Method Details

    • deserialize

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