/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.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 PermissionAction = {
    View: 'View',
    Create: 'Create',
    Edit: 'Edit',
    Delete: 'Delete',
    Export: 'Export',
    Approve: 'Approve',
    Recover: 'Recover'
} as const;
export type PermissionAction = typeof PermissionAction[keyof typeof PermissionAction];


export function instanceOfPermissionAction(value: any): boolean {
    for (const key in PermissionAction) {
        if (Object.prototype.hasOwnProperty.call(PermissionAction, key)) {
            if (PermissionAction[key as keyof typeof PermissionAction] === value) {
                return true;
            }
        }
    }
    return false;
}

export function PermissionActionFromJSON(json: any): PermissionAction {
    return PermissionActionFromJSONTyped(json, false);
}

export function PermissionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionAction {
    return json as PermissionAction;
}

export function PermissionActionToJSON(value?: PermissionAction | null): any {
    return value as any;
}

export function PermissionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionAction {
    return value as PermissionAction;
}

