ModelObject

abstract class ModelObject @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor : 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.

Inheritors

Constructors

Link copied to clipboard

Types

Link copied to clipboard
interface Serializer<T : ModelObject>

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

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)