accessIdentity method
Implementation
Future accessIdentity({
required String identityId,
Map<String,dynamic>? accessParams,
bool? returnValues
}) async {
var url = '/access-identity';
var params = <String,dynamic>{
'identityId': identityId
};
if (accessParams != null) {
params['accessParams'] = accessParams;
}
if (returnValues != null) {
params['returnValues'] = returnValues;
}
var resp = await _invoke(url, params);
if (resp['result'] != 'OK') throw resp['result'];
return {
'attrs': resp['attrs'],
'dattrs': resp['dattrs'],
'resources': resp['resources'],
};
}