Merge branch 'ChristianPauly-master-patch-31988' into 'master'
Fix profile uri parse See merge request famedly/famedlysdk!266
This commit is contained in:
commit
b70ccd875d
|
@ -10,7 +10,7 @@ class Profile {
|
||||||
final Map<String, dynamic> content;
|
final Map<String, dynamic> content;
|
||||||
|
|
||||||
Profile.fromJson(Map<String, dynamic> json)
|
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'],
|
displayname = json['displayname'],
|
||||||
content = json;
|
content = json;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue