url in PusherData is optional

This commit is contained in:
Sorunome 2020-07-14 12:00:37 +02:00
parent 259cede94e
commit 8294231f78
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ class PusherData {
});
PusherData.fromJson(Map<String, dynamic> json) {
url = Uri.parse(json['url']);
if (json.containsKey('url')) {
url = Uri.parse(json['url']);
}
format = json['format'];
}