/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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'; /** * Role serializer * @export * @interface PatchedRoleRequest */ export interface PatchedRoleRequest { /** * * @type {string} * @memberof PatchedRoleRequest */ name?: string; } /** * Check if a given object implements the PatchedRoleRequest interface. */ export function instanceOfPatchedRoleRequest(value: object): value is PatchedRoleRequest { return true; } export function PatchedRoleRequestFromJSON(json: any): PatchedRoleRequest { return PatchedRoleRequestFromJSONTyped(json, false); } export function PatchedRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRoleRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], }; } export function PatchedRoleRequestToJSON(json: any): PatchedRoleRequest { return PatchedRoleRequestToJSONTyped(json, false); } export function PatchedRoleRequestToJSONTyped(value?: PatchedRoleRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], }; }