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.
42 lines
881 B
42 lines
881 B
//
|
|
// PostalData.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Puran Panthi.
|
|
// Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
struct PostalData: Mappable {
|
|
var nativeCountry: String?
|
|
var gender: String?
|
|
var address: [Address]?
|
|
var city: [City]?
|
|
init?(map: Map) {
|
|
|
|
}
|
|
|
|
mutating func mapping(map: Map) {
|
|
nativeCountry <- map["NativeCountry"]
|
|
gender <- map["Gender"]
|
|
address <- map["Addresses"]
|
|
city <- map["Addresses"]
|
|
}
|
|
}
|
|
|
|
struct CountryData: Mappable {
|
|
var nativeCountry: [NativeCountry]?
|
|
var gender: [Gender]?
|
|
var address: String??
|
|
init?(map: Map) {
|
|
|
|
}
|
|
|
|
mutating func mapping(map: Map) {
|
|
nativeCountry <- map["NativeCountry"]
|
|
gender <- map["Gender"]
|
|
address <- map["Addresses"]
|
|
}
|
|
}
|