Created
January 21, 2019 20:18
-
-
Save felangel/b52c7c8cfd49273b73f424276efdec72 to your computer and use it in GitHub Desktop.
[github_search] Github User Model
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
class GithubUser { | |
final String login; | |
final String avatarUrl; | |
const GithubUser({this.login, this.avatarUrl}); | |
static GithubUser fromJson(dynamic json) { | |
return GithubUser( | |
login: json['login'] as String, | |
avatarUrl: json['avatar_url'] as String, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment