暂无描述

StatusModel.swift 625B

    // // StatusModel.swift // PaiaiDataKit // // Created by FFIB on 2017/10/10. // Copyright © 2017年 FFIB. All rights reserved. // import Foundation import ObjectMapper struct StatusModel { var status = 0 var message = "" var description = "" init(json: [String: AnyObject]) { self.init(map: Map(mappingType: .fromJSON, JSON: json)) } } extension StatusModel: Mappable { init(map: Map) { mapping(map: map) } mutating func mapping(map: Map) { status <- map["status"] message <- map["message"] description <- map["description"] } }