/* 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 ApiRateLimitChallengeRequest
 */
export interface ApiRateLimitChallengeRequest {
  /**
   *
   * @type {string}
   * @memberof ApiRateLimitChallengeRequest
   */
  captcha?: string;
  /**
   *
   * @type {string}
   * @memberof ApiRateLimitChallengeRequest
   */
  challengeToken?: string;
}

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

export function ApiRateLimitChallengeRequestFromJSON(
  json: any,
): ApiRateLimitChallengeRequest {
  return ApiRateLimitChallengeRequestFromJSONTyped(json, false);
}

export function ApiRateLimitChallengeRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiRateLimitChallengeRequest {
  if (json == null) {
    return json;
  }
  return {
    captcha: json["captcha"] == null ? undefined : json["captcha"],
    challengeToken:
      json["challenge_token"] == null ? undefined : json["challenge_token"],
  };
}

export function ApiRateLimitChallengeRequestToJSON(
  value?: ApiRateLimitChallengeRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    captcha: value["captcha"],
    challenge_token: value["challengeToken"],
  };
}
