/* 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 PatchedSMSDeviceRequest
 */
export interface PatchedSMSDeviceRequest {
    /**
     * The human-readable name of this device.
     * @type {string}
     * @memberof PatchedSMSDeviceRequest
     */
    name?: string;
}

/**
 * Check if a given object implements the PatchedSMSDeviceRequest interface.
 */
export function instanceOfPatchedSMSDeviceRequest(value: object): value is PatchedSMSDeviceRequest {
    return true;
}

export function PatchedSMSDeviceRequestFromJSON(json: any): PatchedSMSDeviceRequest {
    return PatchedSMSDeviceRequestFromJSONTyped(json, false);
}

export function PatchedSMSDeviceRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedSMSDeviceRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"] == null ? undefined : json["name"],
    };
}

export function PatchedSMSDeviceRequestToJSON(json: any): PatchedSMSDeviceRequest {
    return PatchedSMSDeviceRequestToJSONTyped(json, false);
}

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

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