You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // CountryAndServiceModel.swift // GME Remit // // Created by InKwon James Kim on 20/08/2019. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. //
import ObjectMapper
struct CountryAndServiceModel: Mappable { var countryName: String? var countryCode: String? var countryId: String? var availableServices: [PaymentServiceType]? init(map: Map) {} mutating func mapping(map: Map) { countryName <- map["countryName"] countryCode <- map["countryCode"] countryId <- map["countryId"] availableServices <- map["servicetypeAvailable"] } }
extension CountryAndServiceModel: TablePresenterProtocol { var cellTitle: String? { return "\(countryName ?? "")" } var cellImage: UIImage? { return CountryEnum(rawValue: countryCode?.lowercased() ?? "")?.flag } }
|