Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.94 KB | None | 0 0
  1.     struct RandomUser: Codable {
  2.         let results: [User]
  3.     }
  4.  
  5.     struct User: Codable {
  6.         let gender, email: String
  7.         let location: Location
  8.         let name: Name
  9.         let login: Login
  10.         let dob: DateOfBirth
  11.         let picture: UserAvatar
  12.     }
  13.  
  14.     struct Location: Codable {
  15.         let street: Street
  16.         let city, state: String
  17.         let postcode: Int
  18.         let coordinates: Coordinates
  19.     }
  20.  
  21.     struct Street: Codable {
  22.         let number: Int
  23.         let name: String
  24.     }
  25.  
  26.     struct Coordinates: Codable {
  27.         let latitude, longitude: String
  28.     }
  29.  
  30.     struct Name: Codable {
  31.         let title, first, last: String
  32.     }
  33.  
  34.     struct Login: Codable {
  35.         let username, password: String
  36.     }
  37.  
  38.     struct DateOfBirth: Codable {
  39.         let date: String
  40.         let age: Int
  41.     }
  42.  
  43.     struct UserAvatar: Codable {
  44.         let large, medium, thumbnail: String
  45.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement