Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. struct ImageResponse: Codable {
  2. var message:String
  3. var totalRecord:Int
  4. var totalPage:Int
  5. var nextPage:String
  6. var images:[Image]
  7.  
  8. enum CodingKeys: String, CodingKey {
  9. case message
  10. case totalRecord
  11. case totalPage
  12. case nextPage
  13. case images = "data"
  14. }
  15.  
  16. }
  17.  
  18. struct Image: Codable {
  19. var imageId: Int
  20. var title:String
  21. var imageUrl: String
  22.  
  23. enum CodingKeys: String, CodingKey {
  24. case imageId = "iImageId"
  25. case title = "vTitle"
  26. case imageUrl = "txImageUrl"
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement