Created
July 15, 2018 08:58
-
-
Save rajajawahar/7bed395d766e8a1eb3a722685bac4ac5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// User.swift | |
// iOSMVVM | |
// | |
import UIKit | |
struct User: Codable { | |
var login : String? | |
var id : Int32? | |
var avatarUrl : String? | |
var followersUrl : String? | |
var reposUrl : String? | |
var organisationUrl : String? | |
private enum CodingKeys: String, CodingKey{ | |
case login | |
case id | |
case followersUrl = "followers_url" | |
case avatarUrl = "avatar_url" | |
case organisationUrl = "organisations_url" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment