/* 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'; import type { DeviceFactsOSFamily } from './DeviceFactsOSFamily'; import { DeviceFactsOSFamilyFromJSON, DeviceFactsOSFamilyFromJSONTyped, DeviceFactsOSFamilyToJSON, DeviceFactsOSFamilyToJSONTyped, } from './DeviceFactsOSFamily'; /** * Base serializer class which doesn't implement create/update methods * @export * @interface MDMConfigRequest */ export interface MDMConfigRequest { /** * * @type {DeviceFactsOSFamily} * @memberof MDMConfigRequest */ platform: DeviceFactsOSFamily; /** * * @type {string} * @memberof MDMConfigRequest */ enrollmentToken: string; } /** * Check if a given object implements the MDMConfigRequest interface. */ export function instanceOfMDMConfigRequest(value: object): value is MDMConfigRequest { if (!('platform' in value) || value['platform'] === undefined) return false; if (!('enrollmentToken' in value) || value['enrollmentToken'] === undefined) return false; return true; } export function MDMConfigRequestFromJSON(json: any): MDMConfigRequest { return MDMConfigRequestFromJSONTyped(json, false); } export function MDMConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MDMConfigRequest { if (json == null) { return json; } return { 'platform': DeviceFactsOSFamilyFromJSON(json['platform']), 'enrollmentToken': json['enrollment_token'], }; } export function MDMConfigRequestToJSON(json: any): MDMConfigRequest { return MDMConfigRequestToJSONTyped(json, false); } export function MDMConfigRequestToJSONTyped(value?: MDMConfigRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'platform': DeviceFactsOSFamilyToJSON(value['platform']), 'enrollment_token': value['enrollmentToken'], }; }