stopChannel method
Stops a running channel
May throw BadGatewayException.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter channelId :
A request to stop a running channel
Implementation
Future<StopChannelResponse> stopChannel({
required String channelId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/prod/channels/${Uri.encodeComponent(channelId)}/stop',
exceptionFnMap: _exceptionFns,
);
return StopChannelResponse.fromJson(response);
}