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.
 
 
 
 

47 lines
861 B

//
// PaymentModeModel.swift
// GME Remit
//
// Created by InKwon James Kim on 16/08/2019.
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import ObjectMapper
struct PaymentMethodModel: Mappable, RecipientCommonType {
var id: String?
var name: String?
var currency: [String]?
var localizedName: String?
init() {}
init(
id: String?,
name: String?,
localizedName: String?
) {
self.id = id
self.name = name
self.localizedName = localizedName
}
init?(map: Map) {}
mutating func mapping(map: Map) {
id <- map["id"]
name <- map["name"]
currency <- map["currency"]
localizedName <- map["localizedName"]
}
}
extension PaymentMethodModel: TablePresenterProtocol {
var cellTitle: String? {
return name
}
var cellImage: UIImage? {
return nil
}
}