/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-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.
 */

/**
 * Serializer for sms authenticator devices
 * @export
 * @interface SMSDeviceRequest
 */
export interface SMSDeviceRequest {
    /**
     * The human-readable name of this device.
     * @type {string}
     * @memberof SMSDeviceRequest
     */
    name: string;
}

/**
 * Check if a given object implements the SMSDeviceRequest interface.
 */
export function instanceOfSMSDeviceRequest(value: object): value is SMSDeviceRequest {
    if (!("name" in value) || value["name"] === undefined) return false;
    return true;
}

export function SMSDeviceRequestFromJSON(json: any): SMSDeviceRequest {
    return SMSDeviceRequestFromJSONTyped(json, false);
}

export function SMSDeviceRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): SMSDeviceRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"],
    };
}

export function SMSDeviceRequestToJSON(json: any): SMSDeviceRequest {
    return SMSDeviceRequestToJSONTyped(json, false);
}

export function SMSDeviceRequestToJSONTyped(
    value?: SMSDeviceRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        name: value["name"],
    };
}
