/* tslint:disable */
/* eslint-disable */
/**
 * Signal Cli REST API
 * This is the Signal Cli REST API documentation.
 *
 * The version of the OpenAPI document: 1.0
 *
 *
 * 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.js";
/**
 *
 * @export
 * @interface ApiRegisterNumberRequest
 */
export interface ApiRegisterNumberRequest {
  /**
   *
   * @type {string}
   * @memberof ApiRegisterNumberRequest
   */
  captcha?: string;
  /**
   *
   * @type {boolean}
   * @memberof ApiRegisterNumberRequest
   */
  useVoice?: boolean;
}

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

export function ApiRegisterNumberRequestFromJSON(
  json: any,
): ApiRegisterNumberRequest {
  return ApiRegisterNumberRequestFromJSONTyped(json, false);
}

export function ApiRegisterNumberRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiRegisterNumberRequest {
  if (json == null) {
    return json;
  }
  return {
    captcha: json["captcha"] == null ? undefined : json["captcha"],
    useVoice: json["use_voice"] == null ? undefined : json["use_voice"],
  };
}

export function ApiRegisterNumberRequestToJSON(
  value?: ApiRegisterNumberRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    captcha: value["captcha"],
    use_voice: value["useVoice"],
  };
}
