//
//  ShopCategoryDM.swift
//  WOKA
//
//  Created by MacBook Pro on 22/07/24.
//

import Foundation

// MARK: - ShopCategoryDM
struct ShopCategoryDM: Codable {
    let result: [ResultData]?
    let totalRecords: Int?

    enum CodingKeys: String, CodingKey {
        case result
        case totalRecords = "total_records"
    }
    
    // MARK: - ResultData
    struct ResultData: Codable {
        let id: Int?
        let categoryName: String?
        let categoryThumbnail: String?

        enum CodingKeys: String, CodingKey {
            case id
            case categoryName = "category_name"
            case categoryThumbnail = "category_thumbnail"
        }
    }

}
