12345678910111213141516171819202122232425262728293031323334 |
- 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"]
- }
- }
|