Map<String, dynamic> toJson() { final channelId = this.channelId; return { if (channelId != null) 'channelId': channelId, }; }