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

View file

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