accessIdentity method

Future accessIdentity({
  1. required String identityId,
  2. Map<String, dynamic>? accessParams,
  3. bool? returnValues,
})

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'],
	};
}