@@ -86,8 +86,8 @@ class OSPermissionStateChanges extends JSONStringRepresentable {
86
86
class OSDeviceState extends JSONStringRepresentable {
87
87
88
88
bool hasNotificationPermission = false ;
89
- bool isPushDisabled = false ;
90
- bool isSubscribed = false ;
89
+ bool pushDisabled = false ;
90
+ bool subscribed = false ;
91
91
bool emailSubscribed = false ;
92
92
bool smsSubscribed = false ;
93
93
String ? userId;
@@ -100,8 +100,8 @@ class OSDeviceState extends JSONStringRepresentable {
100
100
101
101
OSDeviceState (Map <String , dynamic > json) {
102
102
this .hasNotificationPermission = json['hasNotificationPermission' ] as bool ;
103
- this .isPushDisabled = json['isPushDisabled ' ] as bool ;
104
- this .isSubscribed = json['isSubscribed ' ] as bool ;
103
+ this .pushDisabled = json['pushDisabled ' ] as bool ;
104
+ this .subscribed = json['subscribed ' ] as bool ;
105
105
this .emailSubscribed = json['emailSubscribed' ] as bool ;
106
106
this .smsSubscribed = json['smsSubscribed' ] as bool ;
107
107
this .userId = json['userId' ] as String ? ;
@@ -116,8 +116,8 @@ class OSDeviceState extends JSONStringRepresentable {
116
116
String jsonRepresentation () {
117
117
return convertToJsonString ({
118
118
'hasNotificationPermission' : this .hasNotificationPermission,
119
- 'isPushDisabled' : this .isPushDisabled ,
120
- 'isSubscribed' : this .isSubscribed ,
119
+ 'isPushDisabled' : this .pushDisabled ,
120
+ 'isSubscribed' : this .subscribed ,
121
121
'userId' : this .userId,
122
122
'pushToken' : this .pushToken,
123
123
'isEmailSubscribed' : this .emailSubscribed,
0 commit comments