Collection
open class Collection : Codable, HasRelationship
Represents a Collection
in Moltin
-
The id of this collection
Declaration
Swift
public let id: String
-
The type of this object
Declaration
Swift
public let type: String
-
The name of this collection
Declaration
Swift
public let name: String
-
The slug of this collection
Declaration
Swift
public let slug: String
-
The description of this collection
Declaration
Swift
public let description: String
-
live / draft
Declaration
Swift
public let status: String
-
The relationships this collection has
Declaration
Swift
public let relationships: Relationships?
-
The collections associated with this collection
Declaration
Swift
public var collections: [Collection]?
-
The products associated with this collection
Declaration
Swift
public var products: [Product]?
-
The children of this collection
Declaration
Swift
public var children: [Collection]?
-
Declaration
Swift
required public init(from decoder: Decoder) throws