BoxModel
public protocol BoxModel
Defines Box SDK model behavior
-
Raw data from the API that populates the model
Declaration
Swift
var rawData: [String : Any] { get } -
init(json:)Default implementationInitializer.
Throws
Decoding errorDefault Implementation
Initializer.
Throws
Decoding errorDeclaration
Swift
init(json: [String : Any]) throwsParameters
jsonJSON in a dictionary form
-
Initializer.
Throws
Decoding errorDeclaration
Swift
init(json: Data) throwsParameters
jsonJSON data
-
json()Default implementationGets JSON string for a Box model object.
Default Implementation
Gets JSON string for a Box model object.
Declaration
Swift
func json() -> StringReturn Value
JSON string
-
toJSONString()Extension methodGets JSON string for a Box model object.
Declaration
Swift
func toJSONString() -> StringReturn Value
JSON string
BoxModel Protocol Reference