From 7d0c45e3ae4de692baaa4eb542b6481168b8eea3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 12 May 2020 11:19:26 +0000 Subject: [PATCH] Update lib/src/utils/pusher.dart --- lib/src/utils/pusher.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/utils/pusher.dart b/lib/src/utils/pusher.dart index b4283ca..810afd8 100644 --- a/lib/src/utils/pusher.dart +++ b/lib/src/utils/pusher.dart @@ -47,16 +47,19 @@ class Pusher { class PusherData { String url; + String format; - PusherData({this.url}); + PusherData({this.url, this.format}); PusherData.fromJson(Map json) { url = json['url']; + format = json['format']; } Map toJson() { final data = {}; data['url'] = url; + data['format'] = format; return data; } }