// // CouponBoxModel.swift // GME Remit // // Created by Jeongbae Kong on 04/12/2019. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation import ObjectMapper struct CouponBoxModel: Mappable { var schemeId: String? var couponType: String? var couponName: String? var discountType: String? var discountValue: String? var expireDate: String? var buyDate: String? init?(map: Map) { } mutating func mapping(map: Map) { schemeId <- map["schemeId"] couponType <- map["couponType"] couponName <- map["couponName"] discountType <- map["discountType"] discountValue <- map["discountValue"] expireDate <- map["expireDate"] buyDate <- map["buyDate"] } } extension CouponBoxModel: Equatable { static func == (lhs: CouponBoxModel, rhs: CouponBoxModel) -> Bool { return lhs.schemeId == rhs.schemeId && lhs.couponType == rhs.couponType && lhs.couponName == rhs.couponName && lhs.discountType == rhs.discountType && lhs.discountValue == rhs.discountValue && lhs.expireDate == rhs.expireDate && lhs.buyDate == rhs.buyDate } }