/* 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 ApiUnregisterNumberRequest
 */
export interface ApiUnregisterNumberRequest {
  /**
   *
   * @type {boolean}
   * @memberof ApiUnregisterNumberRequest
   */
  deleteAccount?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof ApiUnregisterNumberRequest
   */
  deleteLocalData?: boolean;
}

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

export function ApiUnregisterNumberRequestFromJSON(
  json: any,
): ApiUnregisterNumberRequest {
  return ApiUnregisterNumberRequestFromJSONTyped(json, false);
}

export function ApiUnregisterNumberRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiUnregisterNumberRequest {
  if (json == null) {
    return json;
  }
  return {
    deleteAccount:
      json["delete_account"] == null ? undefined : json["delete_account"],
    deleteLocalData:
      json["delete_local_data"] == null ? undefined : json["delete_local_data"],
  };
}

export function ApiUnregisterNumberRequestToJSON(
  value?: ApiUnregisterNumberRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    delete_account: value["deleteAccount"],
    delete_local_data: value["deleteLocalData"],
  };
}
