getSkillGroup method
Gets skill group details by skill group ARN.
May throw NotFoundException.
Parameter skillGroupArn
:
The ARN of the skill group for which to get details. Required.
Implementation
Future<GetSkillGroupResponse> getSkillGroup({
String? skillGroupArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.GetSkillGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (skillGroupArn != null) 'SkillGroupArn': skillGroupArn,
},
);
return GetSkillGroupResponse.fromJson(jsonResponse.body);
}