/* 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 ApiUpdateAccountSettingsRequest
 */
export interface ApiUpdateAccountSettingsRequest {
  /**
   *
   * @type {boolean}
   * @memberof ApiUpdateAccountSettingsRequest
   */
  discoverableByNumber?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof ApiUpdateAccountSettingsRequest
   */
  shareNumber?: boolean;
}

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

export function ApiUpdateAccountSettingsRequestFromJSON(
  json: any,
): ApiUpdateAccountSettingsRequest {
  return ApiUpdateAccountSettingsRequestFromJSONTyped(json, false);
}

export function ApiUpdateAccountSettingsRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiUpdateAccountSettingsRequest {
  if (json == null) {
    return json;
  }
  return {
    discoverableByNumber:
      json["discoverable_by_number"] == null
        ? undefined
        : json["discoverable_by_number"],
    shareNumber:
      json["share_number"] == null ? undefined : json["share_number"],
  };
}

export function ApiUpdateAccountSettingsRequestToJSON(
  value?: ApiUpdateAccountSettingsRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    discoverable_by_number: value["discoverableByNumber"],
    share_number: value["shareNumber"],
  };
}
