/* 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 PermissionEffect = {
    Grant: 'Grant',
    Revoke: 'Revoke'
} as const;
export type PermissionEffect = typeof PermissionEffect[keyof typeof PermissionEffect];


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

export function PermissionEffectFromJSON(json: any): PermissionEffect {
    return PermissionEffectFromJSONTyped(json, false);
}

export function PermissionEffectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionEffect {
    return json as PermissionEffect;
}

export function PermissionEffectToJSON(value?: PermissionEffect | null): any {
    return value as any;
}

export function PermissionEffectToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionEffect {
    return value as PermissionEffect;
}

