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 interfaceModelObject.SerializerInterface that must be implemented and provided as a public SERIALIZER field that serializes the to and from a JSONObject.
-
Constructor Summary
Constructors Constructor Description ModelObject()
-
Method Summary
Modifier and Type Method Description IntegerdescribeContents()-
-
Method Detail
-
describeContents
Integer describeContents()
-
-
-
-