/* 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'; /** * ApplicationEntitlement Serializer * @export * @interface ApplicationEntitlementRequest */ export interface ApplicationEntitlementRequest { /** * * @type {string} * @memberof ApplicationEntitlementRequest */ name: string; /** * * @type {string} * @memberof ApplicationEntitlementRequest */ app: string; /** * * @type {{ [key: string]: any; }} * @memberof ApplicationEntitlementRequest */ attributes?: { [key: string]: any; }; } /** * Check if a given object implements the ApplicationEntitlementRequest interface. */ export function instanceOfApplicationEntitlementRequest(value: object): value is ApplicationEntitlementRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('app' in value) || value['app'] === undefined) return false; return true; } export function ApplicationEntitlementRequestFromJSON(json: any): ApplicationEntitlementRequest { return ApplicationEntitlementRequestFromJSONTyped(json, false); } export function ApplicationEntitlementRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationEntitlementRequest { if (json == null) { return json; } return { 'name': json['name'], 'app': json['app'], 'attributes': json['attributes'] == null ? undefined : json['attributes'], }; } export function ApplicationEntitlementRequestToJSON(json: any): ApplicationEntitlementRequest { return ApplicationEntitlementRequestToJSONTyped(json, false); } export function ApplicationEntitlementRequestToJSONTyped(value?: ApplicationEntitlementRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'app': value['app'], 'attributes': value['attributes'], }; }