def __init__(self, data: ChannelPayload, state: State):
    self.state = state
    self.id = data['_id']
    self.channel_type = ChannelType(data['channel_type'])
    self.server = None
def __init__(self, data: ChannelPayload, state: State):
    self.state = state
    self.id = data['_id']
    self.channel_type = ChannelType(data['channel_type'])
    self.server = None