Class ModelObject

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public abstract class ModelObject
     implements Parcelable
                        

    Base class for a Model object. A model object is a representation of a JSON response or input from the Checkout API. All model objects can be serialized and deserialized to and from a JSONObject using the Serializer interface. All model object also implement Parcelable to be sent as part of Extras in an Intent Bundle.

    The classes extending ModelObject are data classes designed to work standalone or in association with JSON libraries like GSON and Moshi.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface ModelObject.Serializer

      Interface that must be implemented and provided as a public SERIALIZER field that serializes the to and from a JSONObject.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelObject()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer describeContents()
      • Methods inherited from class android.os.Parcelable

        writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait