toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (channelId != null) {
_json[r'channel_id'] = channelId;
}
if (userId != null) {
_json[r'user_id'] = userId;
}
if (roles != null) {
_json[r'roles'] = roles;
}
if (lastViewedAt != null) {
_json[r'last_viewed_at'] = lastViewedAt;
}
if (msgCount != null) {
_json[r'msg_count'] = msgCount;
}
if (mentionCount != null) {
_json[r'mention_count'] = mentionCount;
}
if (notifyProps != null) {
_json[r'notify_props'] = notifyProps;
}
if (lastUpdateAt != null) {
_json[r'last_update_at'] = lastUpdateAt;
}
return _json;
}