toJson method
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'channel': {'id': channelId},
if (custom != null) 'custom': custom,
if (status != null) 'status': status,
if (type != null) 'type': type,
};