getTemplate method
Returns the details for the requested template. Other template APIs are:
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter domainId :
The unique identifier of the Cases domain.
Parameter templateId :
A unique identifier of a template.
Implementation
Future<GetTemplateResponse> getTemplate({
required String domainId,
required String templateId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/domains/${Uri.encodeComponent(domainId)}/templates/${Uri.encodeComponent(templateId)}',
exceptionFnMap: _exceptionFns,
);
return GetTemplateResponse.fromJson(response);
}