/* 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 ApiTrustIdentityRequest
 */
export interface ApiTrustIdentityRequest {
  /**
   *
   * @type {boolean}
   * @memberof ApiTrustIdentityRequest
   */
  trustAllKnownKeys?: boolean;
  /**
   *
   * @type {string}
   * @memberof ApiTrustIdentityRequest
   */
  verifiedSafetyNumber?: string;
}

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

export function ApiTrustIdentityRequestFromJSON(
  json: any,
): ApiTrustIdentityRequest {
  return ApiTrustIdentityRequestFromJSONTyped(json, false);
}

export function ApiTrustIdentityRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): ApiTrustIdentityRequest {
  if (json == null) {
    return json;
  }
  return {
    trustAllKnownKeys:
      json["trust_all_known_keys"] == null
        ? undefined
        : json["trust_all_known_keys"],
    verifiedSafetyNumber:
      json["verified_safety_number"] == null
        ? undefined
        : json["verified_safety_number"],
  };
}

export function ApiTrustIdentityRequestToJSON(
  value?: ApiTrustIdentityRequest | null,
): any {
  if (value == null) {
    return value;
  }
  return {
    trust_all_known_keys: value["trustAllKnownKeys"],
    verified_safety_number: value["verifiedSafetyNumber"],
  };
}
