mirror of
https://github.com/flutter/samples.git
synced 2026-03-26 14:22:03 +00:00
web/github_dataviz: Migrate to null safety (#919)
This commit is contained in:
@@ -6,7 +6,7 @@ class User {
|
||||
User(this.id, this.username, this.avatarUrl);
|
||||
|
||||
static User fromJson(Map<String, dynamic> jsonMap) {
|
||||
User user = User(jsonMap["id"], jsonMap["login"], jsonMap["avatar_url"]);
|
||||
User user = User(jsonMap['id'], jsonMap['login'], jsonMap['avatar_url']);
|
||||
return user;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user