Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ImageResponse: Codable {
- var message:String
- var totalRecord:Int
- var totalPage:Int
- var nextPage:String
- var images:[Image]
- enum CodingKeys: String, CodingKey {
- case message
- case totalRecord
- case totalPage
- case nextPage
- case images = "data"
- }
- }
- struct Image: Codable {
- var imageId: Int
- var title:String
- var imageUrl: String
- enum CodingKeys: String, CodingKey {
- case imageId = "iImageId"
- case title = "vTitle"
- case imageUrl = "txImageUrl"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement