link-stack/packages/signal-api/models/ApiTrustModeRequest.ts

65 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

/* tslint:disable */
/* eslint-disable */
/**
* Signal Cli REST API
* This is the Signal Cli REST API documentation.
*
* The version of the OpenAPI document: 1.0
2024-06-28 07:49:39 +02:00
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
2024-06-28 07:49:39 +02:00
import { mapValues } from "../runtime.js";
/**
2024-06-28 07:49:39 +02:00
*
* @export
* @interface ApiTrustModeRequest
*/
export interface ApiTrustModeRequest {
2024-06-28 07:49:39 +02:00
/**
*
* @type {string}
* @memberof ApiTrustModeRequest
*/
trustMode?: string;
}
/**
* Check if a given object implements the ApiTrustModeRequest interface.
*/
2024-06-28 07:49:39 +02:00
export function instanceOfApiTrustModeRequest(
value: object,
): value is ApiTrustModeRequest {
return true;
}
export function ApiTrustModeRequestFromJSON(json: any): ApiTrustModeRequest {
2024-06-28 07:49:39 +02:00
return ApiTrustModeRequestFromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
export function ApiTrustModeRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApiTrustModeRequest {
if (json == null) {
return json;
}
return {
trustMode: json["trust_mode"] == null ? undefined : json["trust_mode"],
};
}
2024-06-28 07:49:39 +02:00
export function ApiTrustModeRequestToJSON(
value?: ApiTrustModeRequest | null,
): any {
if (value == null) {
return value;
}
return {
trust_mode: value["trustMode"],
};
}