Map<String, dynamic> toMap() { return ChannelMapper.ensureInitialized() .encodeMap<Channel>(this as Channel); }