getBranch method
Returns a branch for an Amplify app.
May throw BadRequestException.
May throw InternalFailureException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter appId :
The unique ID for an Amplify app.
Parameter branchName :
The name of the branch.
Implementation
Future<GetBranchResult> getBranch({
required String appId,
required String branchName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/apps/${Uri.encodeComponent(appId)}/branches/${Uri.encodeComponent(branchName)}',
exceptionFnMap: _exceptionFns,
);
return GetBranchResult.fromJson(response);
}