Converts the permission object to the API format.
The permission object to convert.
The API-compatible permission object.
Converts the permission object to the API format.