toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var type = this.type;
  var watcher = this.watcher;
  var contentId = this.contentId;

  final json = <String, Object?>{};
  json[r'type'] = type;
  json[r'watcher'] = watcher.toJson();
  json[r'contentId'] = contentId;
  return json;
}