Merge branch 'soru/fix-push-payload' into 'master'
url in PusherData is optional See merge request famedly/famedlysdk!383
This commit is contained in:
commit
c689f6d344
|
@ -74,7 +74,9 @@ class PusherData {
|
||||||
});
|
});
|
||||||
|
|
||||||
PusherData.fromJson(Map<String, dynamic> json) {
|
PusherData.fromJson(Map<String, dynamic> json) {
|
||||||
|
if (json.containsKey('url')) {
|
||||||
url = Uri.parse(json['url']);
|
url = Uri.parse(json['url']);
|
||||||
|
}
|
||||||
format = json['format'];
|
format = json['format'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue