retrieveUserConsents method
Retrieves all the consents for a User.
@param {String} userId The User's Id @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<UserConsentResponse, void>> retrieveUserConsents(
String userId) {
return _start<UserConsentResponse, void>()
.withUri('/api/user/consent')
.withParameter('userId', userId)
.withMethod('GET')
.withResponseHandler(defaultResponseHandlerBuilder(
(d) => UserConsentResponse.fromJson(d)))
.go();
}