"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfUserSelfRoles = instanceOfUserSelfRoles;
exports.UserSelfRolesFromJSON = UserSelfRolesFromJSON;
exports.UserSelfRolesFromJSONTyped = UserSelfRolesFromJSONTyped;
exports.UserSelfRolesToJSON = UserSelfRolesToJSON;
exports.UserSelfRolesToJSONTyped = UserSelfRolesToJSONTyped;
/**
 * Check if a given object implements the UserSelfRoles interface.
 */
function instanceOfUserSelfRoles(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    return true;
}
function UserSelfRolesFromJSON(json) {
    return UserSelfRolesFromJSONTyped(json, false);
}
function UserSelfRolesFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'pk': json['pk'],
    };
}
function UserSelfRolesToJSON(json) {
    return UserSelfRolesToJSONTyped(json, false);
}
function UserSelfRolesToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {};
}
//# sourceMappingURL=UserSelfRoles.js.map