toJson method

Map<String, dynamic> toJson()

Implementation

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