toChannelStatus method

ChannelStatus toChannelStatus()

Implementation

ChannelStatus toChannelStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return ChannelStatus.inProgress;
    case 'CREATED':
      return ChannelStatus.created;
    case 'FAILED':
      return ChannelStatus.failed;
  }
  throw Exception('$this is not known in enum ChannelStatus');
}