/* 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 Process */ export interface Process { /** * * @type {number} * @memberof Process */ id: number; /** * * @type {string} * @memberof Process */ name: string; /** * * @type {string} * @memberof Process */ user?: string; } /** * Check if a given object implements the Process interface. */ export function instanceOfProcess(value: object): value is Process { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ProcessFromJSON(json: any): Process { return ProcessFromJSONTyped(json, false); } export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'user': json['user'] == null ? undefined : json['user'], }; } export function ProcessToJSON(json: any): Process { return ProcessToJSONTyped(json, false); } export function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'user': value['user'], }; }