Update lib/src/utils/pusher.dart
This commit is contained in:
parent
fe1bd350ec
commit
7d0c45e3ae
|
@ -47,16 +47,19 @@ class Pusher {
|
||||||
|
|
||||||
class PusherData {
|
class PusherData {
|
||||||
String url;
|
String url;
|
||||||
|
String format;
|
||||||
|
|
||||||
PusherData({this.url});
|
PusherData({this.url, this.format});
|
||||||
|
|
||||||
PusherData.fromJson(Map<String, dynamic> json) {
|
PusherData.fromJson(Map<String, dynamic> json) {
|
||||||
url = json['url'];
|
url = json['url'];
|
||||||
|
format = json['format'];
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final data = <String, dynamic>{};
|
final data = <String, dynamic>{};
|
||||||
data['url'] = url;
|
data['url'] = url;
|
||||||
|
data['format'] = format;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue