// // MainCardInformation.swift // GME Remit // // Created by InKwon James Kim on 2019/10/22. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. // import ObjectMapper struct MainCardInformation: Mappable { var cardCode: String? var cardName: String? var facePrice: String? var subCardInfo: [CardInformation]? init?(map: Map) { } mutating func mapping(map: Map) { cardCode <- map["CardCode"] facePrice <- map["FacePrice"] cardName <- map["CardName"] subCardInfo <- map["SubInfo"] } } extension MainCardInformation: TablePresenterProtocol { var cellTitle: String? { return "\(cardName ?? "") \(facePrice?.decimalToCurrency(as: .krw, isFront: true) ?? "")" } var cellImage: UIImage? { return nil } }