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.
 
 
 
 

46 lines
983 B

//
// AgentModel.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 AgentModel: Mappable, RecipientCommonType {
var id: String?
var name: String?
var localizedName: String?
var branch: BranchModel?
var accountNumber: String?
var currency: [String]?
init() {}
init(
id: String?,
name: String?,
localizedName: String?,
branch: BranchModel?,
accountNumber: String?,
currency: [String]?
) {
self.id = id
self.name = name
self.localizedName = localizedName
self.branch = branch
self.accountNumber = accountNumber
self.currency = currency
}
init?(map: Map) {}
mutating func mapping(map: Map) {
id <- map["id"]
name <- map["name"]
localizedName <- map["localizedName"]
branch <- map["branch"]
accountNumber <- map["accountNo"]
currency <- map["currency"]
}
}