toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}