getCredentialTypesForTargetAccount static method
Future<ListOfGetCredentialTypesForAccountResponseResponse>
getCredentialTypesForTargetAccount(
- HttpClient client,
- String membershipId
Returns a list of credential types attached to the requested account
Implementation
static Future<ListOfGetCredentialTypesForAccountResponseResponse> getCredentialTypesForTargetAccount (
HttpClient client,
String membershipId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _membershipId = '$membershipId';
final HttpClientConfig config = HttpClientConfig('GET', '/User/GetCredentialTypesForTargetAccount/$_membershipId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return ListOfGetCredentialTypesForAccountResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}