/* 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'; /** * LDAP PropertyMapping Serializer * @export * @interface LDAPSourcePropertyMappingRequest */ export interface LDAPSourcePropertyMappingRequest { /** * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. * @type {string} * @memberof LDAPSourcePropertyMappingRequest */ managed?: string | null; /** * * @type {string} * @memberof LDAPSourcePropertyMappingRequest */ name: string; /** * * @type {string} * @memberof LDAPSourcePropertyMappingRequest */ expression: string; } /** * Check if a given object implements the LDAPSourcePropertyMappingRequest interface. */ export function instanceOfLDAPSourcePropertyMappingRequest(value: object): value is LDAPSourcePropertyMappingRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('expression' in value) || value['expression'] === undefined) return false; return true; } export function LDAPSourcePropertyMappingRequestFromJSON(json: any): LDAPSourcePropertyMappingRequest { return LDAPSourcePropertyMappingRequestFromJSONTyped(json, false); } export function LDAPSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSourcePropertyMappingRequest { if (json == null) { return json; } return { 'managed': json['managed'] == null ? undefined : json['managed'], 'name': json['name'], 'expression': json['expression'], }; } export function LDAPSourcePropertyMappingRequestToJSON(json: any): LDAPSourcePropertyMappingRequest { return LDAPSourcePropertyMappingRequestToJSONTyped(json, false); } export function LDAPSourcePropertyMappingRequestToJSONTyped(value?: LDAPSourcePropertyMappingRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'managed': value['managed'], 'name': value['name'], 'expression': value['expression'], }; }