/* 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 browser
 * @export
 * @interface AuthenticatedSessionUserAgentUserAgent
 */
export interface AuthenticatedSessionUserAgentUserAgent {
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentUserAgent
     */
    family: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentUserAgent
     */
    major: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentUserAgent
     */
    minor: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionUserAgentUserAgent
     */
    patch: string;
}

/**
 * Check if a given object implements the AuthenticatedSessionUserAgentUserAgent interface.
 */
export function instanceOfAuthenticatedSessionUserAgentUserAgent(value: object): value is AuthenticatedSessionUserAgentUserAgent {
    if (!('family' in value) || value['family'] === undefined) return false;
    if (!('major' in value) || value['major'] === undefined) return false;
    if (!('minor' in value) || value['minor'] === undefined) return false;
    if (!('patch' in value) || value['patch'] === undefined) return false;
    return true;
}

export function AuthenticatedSessionUserAgentUserAgentFromJSON(json: any): AuthenticatedSessionUserAgentUserAgent {
    return AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json, false);
}

export function AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgentUserAgent {
    if (json == null) {
        return json;
    }
    return {
        
        'family': json['family'],
        'major': json['major'],
        'minor': json['minor'],
        'patch': json['patch'],
    };
}

export function AuthenticatedSessionUserAgentUserAgentToJSON(json: any): AuthenticatedSessionUserAgentUserAgent {
    return AuthenticatedSessionUserAgentUserAgentToJSONTyped(json, false);
}

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

    return {
        
        'family': value['family'],
        'major': value['major'],
        'minor': value['minor'],
        'patch': value['patch'],
    };
}

