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

  1. //
  2. // PostalData.swift
  3. // GME Remit
  4. //
  5. // Created by Puran Panthi.
  6. // Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. struct PostalData: Mappable {
  11. var nativeCountry: String?
  12. var gender: String?
  13. var address: [Address]?
  14. var city: [City]?
  15. init?(map: Map) {
  16. }
  17. mutating func mapping(map: Map) {
  18. nativeCountry <- map["NativeCountry"]
  19. gender <- map["Gender"]
  20. address <- map["Addresses"]
  21. city <- map["Addresses"]
  22. }
  23. }
  24. struct CountryData: Mappable {
  25. var nativeCountry: [NativeCountry]?
  26. var gender: [Gender]?
  27. var address: String??
  28. init?(map: Map) {
  29. }
  30. mutating func mapping(map: Map) {
  31. nativeCountry <- map["NativeCountry"]
  32. gender <- map["Gender"]
  33. address <- map["Addresses"]
  34. }
  35. }