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.

29 lines
591 B

5 years ago
5 years ago
  1. //
  2. // DynamicFieldModel.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 14/08/2019.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import ObjectMapper
  9. struct FieldModel: Mappable {
  10. var fieldName: String?
  11. var required: String?
  12. var minLength: Int?
  13. var maxLength: Int?
  14. var keyBoardType: String?
  15. init?(map: Map) {
  16. }
  17. mutating func mapping(map: Map) {
  18. fieldName <- map["Field"]
  19. required <- map["FieldRequired"]
  20. minLength <- map["MinLength"]
  21. maxLength <- map["MaxLength"]
  22. keyBoardType <- map["Keyboard"]
  23. }
  24. }