/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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 ProcessRequest */ export interface ProcessRequest { /** * * @type {number} * @memberof ProcessRequest */ id: number; /** * * @type {string} * @memberof ProcessRequest */ name: string; /** * * @type {string} * @memberof ProcessRequest */ user?: string; } /** * Check if a given object implements the ProcessRequest interface. */ export function instanceOfProcessRequest(value: object): value is ProcessRequest { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ProcessRequestFromJSON(json: any): ProcessRequest { return ProcessRequestFromJSONTyped(json, false); } export function ProcessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessRequest { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'user': json['user'] == null ? undefined : json['user'], }; } export function ProcessRequestToJSON(json: any): ProcessRequest { return ProcessRequestToJSONTyped(json, false); } export function ProcessRequestToJSONTyped(value?: ProcessRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'user': value['user'], }; }