toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
json['entityType'] = entityType.toShortString();
json['entityId'] = entityId;
if (scope != null) {
json['scope'] = scope!.toShortString();
}
json['unsubscribe'] = unsubscribe;
return json;
}