url in PusherData is optional
This commit is contained in:
parent
259cede94e
commit
8294231f78
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue