Order

public class Order : BoxModel

Defines the order of items

BoxModel

  • Declaration

    Swift

    public private(set) var rawData: [String : Any] { get }

Properties

  • by

    Defines which parameters are items ordered by

    Declaration

    Swift

    public let by: String?
  • Defines direction of items order - ascending or descending

    Declaration

    Swift

    public let direction: OrderDirection?
  • Initializer.

    Throws

    Decoding error.

    Declaration

    Swift

    public required init(json: [String : Any]) throws

    Parameters

    json

    JSON dictionary.