/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export */ export const PermissionRole = { Owner: 'owner', Viewer: 'viewer', Editor: 'editor', Commenter: 'commenter' } as const; export type PermissionRole = typeof PermissionRole[keyof typeof PermissionRole]; export function instanceOfPermissionRole(value: any): boolean { for (const key in PermissionRole) { if (Object.prototype.hasOwnProperty.call(PermissionRole, key)) { if (PermissionRole[key as keyof typeof PermissionRole] === value) { return true; } } } return false; } export function PermissionRoleFromJSON(json: any): PermissionRole { return PermissionRoleFromJSONTyped(json, false); } export function PermissionRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionRole { return json as PermissionRole; } export function PermissionRoleToJSON(value?: PermissionRole | null): any { return value as any; } export function PermissionRoleToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionRole { return value as PermissionRole; }