PCFCategory

public struct PCFCategory: Category, Decodable

PCFCategory model.

  • The category id.

    Declaration

    Swift

    public let resourceId: String
  • The category name.

    Declaration

    Swift

    public let name: String
  • The category images.

    Declaration

    Swift

    public let images: [ImageResourceType]
  • The category parent ids.

    Declaration

    Swift

    public let parentCategoryIds: [CategoryId]
  • The category tags.

    Declaration

    Swift

    public let tags: [String]
  • The category sub-category ids.

    Declaration

    Swift

    public let subCategoryIds: [CategoryId]
  • The category sub-category ids.

    Declaration

    Swift

    public init?(json: JSON)

    Parameters

    json

    JSON representation of object.

    Return Value

    New instance when JSON parsing successful, false otherwise.