/* 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 ApiSearchResponse
 */
export interface ApiSearchResponse {
  /**
   *
   * @type {string}
   * @memberof ApiSearchResponse
   */
  number?: string;
  /**
   *
   * @type {boolean}
   * @memberof ApiSearchResponse
   */
  registered?: boolean;
}

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

export function ApiSearchResponseFromJSON(json: any): ApiSearchResponse {
  return ApiSearchResponseFromJSONTyped(json, false);
}

export function ApiSearchResponseFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiSearchResponse {
  if (json == null) {
    return json;
  }
  return {
    number: json["number"] == null ? undefined : json["number"],
    registered: json["registered"] == null ? undefined : json["registered"],
  };
}

export function ApiSearchResponseToJSON(value?: ApiSearchResponse | null): any {
  if (value == null) {
    return value;
  }
  return {
    number: value["number"],
    registered: value["registered"],
  };
}
