toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.conversationId != null) {
json[r'conversationId'] = this.conversationId;
} else {
json[r'conversationId'] = null;
}
if (this.contextHTML != null) {
json[r'contextHTML'] = this.contextHTML;
} else {
json[r'contextHTML'] = null;
}
json[r'fromUserNames'] = this.fromUserNames;
json[r'fromUserIds'] = this.fromUserIds;
json[r'relatedIds'] = this.relatedIds;
if (this.count != null) {
json[r'count'] = this.count;
} else {
json[r'count'] = null;
}
json[r'optedOut'] = this.optedOut;
if (this.fromUserAvatarSrc != null) {
json[r'fromUserAvatarSrc'] = this.fromUserAvatarSrc;
} else {
json[r'fromUserAvatarSrc'] = null;
}
if (this.fromUserId != null) {
json[r'fromUserId'] = this.fromUserId;
} else {
json[r'fromUserId'] = null;
}
if (this.fromUserName != null) {
json[r'fromUserName'] = this.fromUserName;
} else {
json[r'fromUserName'] = null;
}
if (this.fromCommentId != null) {
json[r'fromCommentId'] = this.fromCommentId;
} else {
json[r'fromCommentId'] = null;
}
json[r'type'] = this.type;
json[r'createdAt'] = this.createdAt;
json[r'sent'] = this.sent;
json[r'viewed'] = this.viewed;
json[r'relatedObjectId'] = this.relatedObjectId;
json[r'relatedObjectType'] = this.relatedObjectType;
if (this.pageTitle != null) {
json[r'pageTitle'] = this.pageTitle;
} else {
json[r'pageTitle'] = null;
}
json[r'url'] = this.url;
json[r'urlId'] = this.urlId;
json[r'_id'] = this.id;
return json;
}