//
//  ProductImages.swift
//  iPOS
//
//  Created by bbc on 15/05/17.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import ObjectMapper
import UIKit

class ProductImages: Mappable {
    var ProductImageId: Int!
    var ProductId: String!
    var ProductImage: UIImage?
    var ProductImageIcon: UIImage?
    var IsDefault: Bool?
    
    func mapping(map: Map) {
        ProductImageId <- map["ProductImageId"]
        ProductId <- map["ProductId"]
        ProductImage <- (map["ProductImage"], Util.CustomImageTransform())
        ProductImageIcon <- (map["ProductImageIcon"], Util.CustomImageTransform())
        IsDefault <- map["IsDefault"]
    }
    
    required init?(map: Map) {
    }
    
    init() {
    }
}
