Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct RandomUser: Codable {
- let results: [User]
- }
- struct User: Codable {
- let gender, email: String
- let location: Location
- let name: Name
- let login: Login
- let dob: DateOfBirth
- let picture: UserAvatar
- }
- struct Location: Codable {
- let street: Street
- let city, state: String
- let postcode: Int
- let coordinates: Coordinates
- }
- struct Street: Codable {
- let number: Int
- let name: String
- }
- struct Coordinates: Codable {
- let latitude, longitude: String
- }
- struct Name: Codable {
- let title, first, last: String
- }
- struct Login: Codable {
- let username, password: String
- }
- struct DateOfBirth: Codable {
- let date: String
- let age: Int
- }
- struct UserAvatar: Codable {
- let large, medium, thumbnail: String
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement