Fix profile uri parse

This commit is contained in:
Christian Pauly 2020-04-28 11:36:20 +00:00
parent 96d2a2a0b4
commit e3ced175de

View file

@ -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;