//
//  BillDetails.swift
//  kt
//
//  Created by neox on 15.12.17.
//  Copyright © 2017 SimpleCode. All rights reserved.
//

import Foundation

class BillDetailItem {
    var billId: Int?
    var device: String?
    var serviceDate: String?
    var name: String?
    var serviceCount: Int?
    var scgName: String?
    var sumDebit: Double?
    var direction: String?
    var detail: String?
    
    init(json: JSON) {
        self.billId = json["bill_id"].intValue
        self.device = json["device"].stringValue
        self.serviceDate = json["service_date"].stringValue
        self.name = json["name"].stringValue
        self.serviceCount = json["service_count"].intValue
        self.scgName = json["scg_name"].stringValue
        self.sumDebit = json["sum_debit"].doubleValue
        self.direction = json["direction"].stringValue
        self.detail = json["detail"].stringValue
    }

}
