//
//  Size.swift
//  iPOS
//
//  Created by bbc on 21/06/17.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import ObjectMapper

class Size: Mappable, INameable{
    var sizeId: Int!
    var code: String!
    var sizeClassId: Int!
    var customName: String { return self.code! }
    var customSubtitle: String? { return nil }
    
    func mapping(map: Map) {
        sizeId <- map["SizeId"]
        code <- map["Code"]
        sizeClassId <- map["SizeClassId"]
    }
    
    required init?(map: Map) {
    }
    
    init() {
    }
}
