/* 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.
 */

import { mapValues } from '../runtime';
import type { PermissionDto } from './PermissionDto';
import {
    PermissionDtoFromJSON,
    PermissionDtoFromJSONTyped,
    PermissionDtoToJSON,
    PermissionDtoToJSONTyped,
} from './PermissionDto';

/**
 * 
 * @export
 * @interface UpdateRolePermissionsRequest
 */
export interface UpdateRolePermissionsRequest {
    /**
     * 
     * @type {Array<PermissionDto>}
     * @memberof UpdateRolePermissionsRequest
     */
    permissions?: Array<PermissionDto> | null;
}

/**
 * Check if a given object implements the UpdateRolePermissionsRequest interface.
 */
export function instanceOfUpdateRolePermissionsRequest(value: object): value is UpdateRolePermissionsRequest {
    return true;
}

export function UpdateRolePermissionsRequestFromJSON(json: any): UpdateRolePermissionsRequest {
    return UpdateRolePermissionsRequestFromJSONTyped(json, false);
}

export function UpdateRolePermissionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRolePermissionsRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'permissions': json['permissions'] == null ? undefined : ((json['permissions'] as Array<any>).map(PermissionDtoFromJSON)),
    };
}

export function UpdateRolePermissionsRequestToJSON(json: any): UpdateRolePermissionsRequest {
    return UpdateRolePermissionsRequestToJSONTyped(json, false);
}

export function UpdateRolePermissionsRequestToJSONTyped(value?: UpdateRolePermissionsRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'permissions': value['permissions'] == null ? undefined : ((value['permissions'] as Array<any>).map(PermissionDtoToJSON)),
    };
}

