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


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

export function PermissionScopeFromJSON(json: any): PermissionScope {
    return PermissionScopeFromJSONTyped(json, false);
}

export function PermissionScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionScope {
    return json as PermissionScope;
}

export function PermissionScopeToJSON(value?: PermissionScope | null): any {
    return value as any;
}

export function PermissionScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionScope {
    return value as PermissionScope;
}

