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

/**
 * Check if a given object implements the AuthenticatedSessionUserAgentOs interface.
 */
export function instanceOfAuthenticatedSessionUserAgentOs(value: object): value is AuthenticatedSessionUserAgentOs {
    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;
    if (!('patchMinor' in value) || value['patchMinor'] === undefined) return false;
    return true;
}

export function AuthenticatedSessionUserAgentOsFromJSON(json: any): AuthenticatedSessionUserAgentOs {
    return AuthenticatedSessionUserAgentOsFromJSONTyped(json, false);
}

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

export function AuthenticatedSessionUserAgentOsToJSON(json: any): AuthenticatedSessionUserAgentOs {
    return AuthenticatedSessionUserAgentOsToJSONTyped(json, false);
}

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

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

