toJson method
Implementation
Map<String, Object?> toJson() {
var isWatching = this.isWatching;
var self = this.self;
var watchCount = this.watchCount;
var watchers = this.watchers;
final json = <String, Object?>{};
json[r'isWatching'] = isWatching;
if (self != null) {
json[r'self'] = self;
}
if (watchCount != null) {
json[r'watchCount'] = watchCount;
}
json[r'watchers'] = watchers.map((i) => i.toJson()).toList();
return json;
}