createPermission method
Create a permission to a specific resource.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<Permission> createPermission(CreatePermissionRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_createPermission case final createPermission?) {
return createPermission(request);
}
throw UnsupportedError('createPermission');
}