getPermissionSchemeGrant method

Future<PermissionGrant> getPermissionSchemeGrant({
  1. required int schemeId,
  2. required int permissionId,
  3. String? expand,
})

Returns a permission grant.

Permissions required: Permission to access Jira.

Implementation

Future<PermissionGrant> getPermissionSchemeGrant(
    {required int schemeId,
    required int permissionId,
    String? expand}) async {
  return PermissionGrant.fromJson(await _client.send(
    'get',
    'rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}',
    pathParameters: {
      'schemeId': '$schemeId',
      'permissionId': '$permissionId',
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
  ));
}