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;
}
if (teamDisplayName != null) {
_json[r'team_display_name'] = teamDisplayName;
}
if (teamName != null) {
_json[r'team_name'] = teamName;
}
if (teamUpdateAt != null) {
_json[r'team_update_at'] = teamUpdateAt;
}
return _json;
}