listGatewayGroups method
Retrieves a list of gateway group summaries. Use GetGatewayGroup to retrieve details of a specific gateway group.
Parameter maxResults
:
The maximum number of gateway group summaries to return. The default is
50.
Parameter nextToken
:
The token used to paginate though multiple pages of gateway group
summaries.
Implementation
Future<ListGatewayGroupsResponse> listGatewayGroups({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
1100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.ListGatewayGroups'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListGatewayGroupsResponse.fromJson(jsonResponse.body);
}