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

import Foundation
import ObjectMapper

class ProducerLine: Mappable, INameable{
    var producerLineId: Int!
    var code: String?
    var name: String?
    var producerId: Int?
    var customName: String { return self.name! }
    var customSubtitle: String? { return nil }
    
    func mapping(map: Map) {
        producerLineId <- map["ProducerLineId"]
        code <- map["Code"]
        name <- map["Name"]
        producerId <- map["ProducerId"]
    }
    
    required init?(map: Map) {
    }
    
    init() {
    }
}
