@override Map<String, Object?> toJson() => { if (channel != null) "channel": encodeValue(channel), };