// // KycModel.swift // GMERemittance // // Created by gme_2 on 14/09/2018. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation import ObjectMapper class KycModelContainer: Mappable { var errorCode: String? var message: String? var id: String? var data: KycModel? required init?(map: Map) { } func mapping(map: Map) { errorCode <- map["ErrorCode"] message <- map["Msg"] id <- map["Id"] data <- map["Data"] } } class KycModel: Mappable { var nativeCountry: [KeyValueModel]? var city: [KeyValueModel]? var occupations: [KeyValueModel]? var bank: [KeyValueModel]? var idType: [KeyValueModel]? var sourceOfFund: [KeyValueModel]? required init?(map: Map) { } func mapping(map: Map) { nativeCountry <- map["NativeCountry"] city <- map["City"] occupations <- map["Occupation"] bank <- map["Bank"] idType <- map["IdType"] sourceOfFund <- map["SourceOfFund"] } } class KeyValueModel: Mappable { var id: String? var text: String? var code: String? required init?(map: Map) { } func mapping(map: Map) { id <- map["id"] text <- map["text"] code <- map["code"] } }