/* 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';
/**
 * User agent device
 * @export
 * @interface AuthenticatedSessionUserAgentDevice
 */
export interface AuthenticatedSessionUserAgentDevice {
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentDevice
     */
    brand: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentDevice
     */
    family: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentDevice
     */
    model: string;
}

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

export function AuthenticatedSessionUserAgentDeviceFromJSON(json: any): AuthenticatedSessionUserAgentDevice {
    return AuthenticatedSessionUserAgentDeviceFromJSONTyped(json, false);
}

export function AuthenticatedSessionUserAgentDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgentDevice {
    if (json == null) {
        return json;
    }
    return {
        
        'brand': json['brand'],
        'family': json['family'],
        'model': json['model'],
    };
}

export function AuthenticatedSessionUserAgentDeviceToJSON(json: any): AuthenticatedSessionUserAgentDevice {
    return AuthenticatedSessionUserAgentDeviceToJSONTyped(json, false);
}

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

    return {
        
        'brand': value['brand'],
        'family': value['family'],
        'model': value['model'],
    };
}

