/* 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';
/**
 * 
 * @export
 * @interface UserSelfGroups
 */
export interface UserSelfGroups {
    /**
     * 
     * @type {string}
     * @memberof UserSelfGroups
     */
    readonly name: string;
    /**
     * 
     * @type {string}
     * @memberof UserSelfGroups
     */
    readonly pk: string;
}

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

export function UserSelfGroupsFromJSON(json: any): UserSelfGroups {
    return UserSelfGroupsFromJSONTyped(json, false);
}

export function UserSelfGroupsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSelfGroups {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
        'pk': json['pk'],
    };
}

export function UserSelfGroupsToJSON(json: any): UserSelfGroups {
    return UserSelfGroupsToJSONTyped(json, false);
}

export function UserSelfGroupsToJSONTyped(value?: Omit<UserSelfGroups, 'name'|'pk'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
    };
}

