/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * 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 { PolicyTestResult } from './PolicyTestResult';
import {
    PolicyTestResultFromJSON,
    PolicyTestResultFromJSONTyped,
    PolicyTestResultToJSON,
    PolicyTestResultToJSONTyped,
} from './PolicyTestResult';

/**
 * Base serializer class which doesn't implement create/update methods
 * @export
 * @interface RadiusCheckAccess
 */
export interface RadiusCheckAccess {
    /**
     * 
     * @type {string}
     * @memberof RadiusCheckAccess
     */
    attributes?: string;
    /**
     * 
     * @type {PolicyTestResult}
     * @memberof RadiusCheckAccess
     */
    access: PolicyTestResult;
}

/**
 * Check if a given object implements the RadiusCheckAccess interface.
 */
export function instanceOfRadiusCheckAccess(value: object): value is RadiusCheckAccess {
    if (!('access' in value) || value['access'] === undefined) return false;
    return true;
}

export function RadiusCheckAccessFromJSON(json: any): RadiusCheckAccess {
    return RadiusCheckAccessFromJSONTyped(json, false);
}

export function RadiusCheckAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusCheckAccess {
    if (json == null) {
        return json;
    }
    return {
        
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
        'access': PolicyTestResultFromJSON(json['access']),
    };
}

export function RadiusCheckAccessToJSON(json: any): RadiusCheckAccess {
    return RadiusCheckAccessToJSONTyped(json, false);
}

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

    return {
        
        'attributes': value['attributes'],
        'access': PolicyTestResultToJSON(value['access']),
    };
}

