toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'type'] = this.type;
if (this.timestamp != null) {
json[r'timestamp'] = this.timestamp;
} else {
json[r'timestamp'] = null;
}
if (this.ts != null) {
json[r'ts'] = this.ts;
} else {
json[r'ts'] = null;
}
if (this.broadcastId != null) {
json[r'broadcastId'] = this.broadcastId;
} else {
json[r'broadcastId'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
json[r'badges'] = this.badges;
if (this.notification != null) {
json[r'notification'] = this.notification;
} else {
json[r'notification'] = null;
}
if (this.vote != null) {
json[r'vote'] = this.vote;
} else {
json[r'vote'] = null;
}
if (this.comment != null) {
json[r'comment'] = this.comment;
} else {
json[r'comment'] = null;
}
if (this.feedPost != null) {
json[r'feedPost'] = this.feedPost;
} else {
json[r'feedPost'] = null;
}
if (this.extraInfo != null) {
json[r'extraInfo'] = this.extraInfo;
} else {
json[r'extraInfo'] = null;
}
if (this.config != null) {
json[r'config'] = this.config;
} else {
json[r'config'] = null;
}
if (this.isClosed != null) {
json[r'isClosed'] = this.isClosed;
} else {
json[r'isClosed'] = null;
}
json[r'uj'] = this.uj;
json[r'ul'] = this.ul;
if (this.sc != null) {
json[r'sc'] = this.sc;
} else {
json[r'sc'] = null;
}
json[r'changes'] = this.changes;
return json;
}