getPreferences method
Retrieves the current preferences for Pricing Calculator.
May throw DataUnavailableException.
Implementation
Future<GetPreferencesResponse> getPreferences() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSBCMPricingCalculator.GetPreferences'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return GetPreferencesResponse.fromJson(jsonResponse.body);
}