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

86 lines
1.8 KiB
TypeScript
Raw 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 ApiUpdateContactRequest
*/
export interface ApiUpdateContactRequest {
2024-06-28 07:49:39 +02:00
/**
*
* @type {number}
* @memberof ApiUpdateContactRequest
*/
expirationInSeconds?: number;
/**
*
* @type {string}
* @memberof ApiUpdateContactRequest
*/
name?: string;
/**
*
* @type {string}
* @memberof ApiUpdateContactRequest
*/
recipient?: string;
}
/**
* Check if a given object implements the ApiUpdateContactRequest interface.
*/
2024-06-28 07:49:39 +02:00
export function instanceOfApiUpdateContactRequest(
value: object,
): value is ApiUpdateContactRequest {
return true;
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateContactRequestFromJSON(
json: any,
): ApiUpdateContactRequest {
return ApiUpdateContactRequestFromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateContactRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApiUpdateContactRequest {
if (json == null) {
return json;
}
return {
expirationInSeconds:
json["expiration_in_seconds"] == null
? undefined
: json["expiration_in_seconds"],
name: json["name"] == null ? undefined : json["name"],
recipient: json["recipient"] == null ? undefined : json["recipient"],
};
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateContactRequestToJSON(
value?: ApiUpdateContactRequest | null,
): any {
if (value == null) {
return value;
}
return {
expiration_in_seconds: value["expirationInSeconds"],
name: value["name"],
recipient: value["recipient"],
};
}