toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (teamId != null) {
_json[r'team_id'] = teamId;
}
if (channelId != null) {
_json[r'channel_id'] = channelId;
}
if (msgCount != null) {
_json[r'msg_count'] = msgCount;
}
if (mentionCount != null) {
_json[r'mention_count'] = mentionCount;
}
if (lastViewedAt != null) {
_json[r'last_viewed_at'] = lastViewedAt;
}
return _json;
}