/* 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.
 */

/**
 * SMS Challenge response, device is set by get_response_instance
 * @export
 * @interface AuthenticatorSMSChallengeResponseRequest
 */
export interface AuthenticatorSMSChallengeResponseRequest {
    /**
     *
     * @type {string}
     * @memberof AuthenticatorSMSChallengeResponseRequest
     */
    component?: string;
    /**
     *
     * @type {string}
     * @memberof AuthenticatorSMSChallengeResponseRequest
     */
    code?: string;
    /**
     *
     * @type {string}
     * @memberof AuthenticatorSMSChallengeResponseRequest
     */
    phoneNumber?: string;
}

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

export function AuthenticatorSMSChallengeResponseRequestFromJSON(
    json: any,
): AuthenticatorSMSChallengeResponseRequest {
    return AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, false);
}

export function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): AuthenticatorSMSChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        component: json["component"] == null ? undefined : json["component"],
        code: json["code"] == null ? undefined : json["code"],
        phoneNumber: json["phone_number"] == null ? undefined : json["phone_number"],
    };
}

export function AuthenticatorSMSChallengeResponseRequestToJSON(
    json: any,
): AuthenticatorSMSChallengeResponseRequest {
    return AuthenticatorSMSChallengeResponseRequestToJSONTyped(json, false);
}

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

    return {
        component: value["component"],
        code: value["code"],
        phone_number: value["phoneNumber"],
    };
}
