Fix profile uri parse
This commit is contained in:
parent
96d2a2a0b4
commit
e3ced175de
|
@ -10,7 +10,7 @@ class Profile {
|
|||
final Map<String, dynamic> content;
|
||||
|
||||
Profile.fromJson(Map<String, dynamic> json)
|
||||
: avatarUrl = Uri.parse(json['avatar_url']),
|
||||
: avatarUrl = json['avatar_url'] != null ? Uri.parse(json['avatar_url']) : null,
|
||||
displayname = json['displayname'],
|
||||
content = json;
|
||||
|
||||
|
|
Loading…
Reference in a new issue