/* 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 DeviceUserRequest */ export interface DeviceUserRequest { /** * * @type {string} * @memberof DeviceUserRequest */ id: string; /** * * @type {string} * @memberof DeviceUserRequest */ username?: string; /** * * @type {string} * @memberof DeviceUserRequest */ name?: string; /** * * @type {string} * @memberof DeviceUserRequest */ home?: string; } /** * Check if a given object implements the DeviceUserRequest interface. */ export function instanceOfDeviceUserRequest(value: object): value is DeviceUserRequest { if (!('id' in value) || value['id'] === undefined) return false; return true; } export function DeviceUserRequestFromJSON(json: any): DeviceUserRequest { return DeviceUserRequestFromJSONTyped(json, false); } export function DeviceUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceUserRequest { if (json == null) { return json; } return { 'id': json['id'], 'username': json['username'] == null ? undefined : json['username'], 'name': json['name'] == null ? undefined : json['name'], 'home': json['home'] == null ? undefined : json['home'], }; } export function DeviceUserRequestToJSON(json: any): DeviceUserRequest { return DeviceUserRequestToJSONTyped(json, false); } export function DeviceUserRequestToJSONTyped(value?: DeviceUserRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'username': value['username'], 'name': value['name'], 'home': value['home'], }; }