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

75 lines
1.6 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 ApiAddStickerPackRequest
*/
export interface ApiAddStickerPackRequest {
2024-06-28 07:49:39 +02:00
/**
*
* @type {string}
* @memberof ApiAddStickerPackRequest
*/
packId?: string;
/**
*
* @type {string}
* @memberof ApiAddStickerPackRequest
*/
packKey?: string;
}
/**
* Check if a given object implements the ApiAddStickerPackRequest interface.
*/
2024-06-28 07:49:39 +02:00
export function instanceOfApiAddStickerPackRequest(
value: object,
): value is ApiAddStickerPackRequest {
return true;
}
2024-06-28 07:49:39 +02:00
export function ApiAddStickerPackRequestFromJSON(
json: any,
): ApiAddStickerPackRequest {
return ApiAddStickerPackRequestFromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
export function ApiAddStickerPackRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApiAddStickerPackRequest {
if (json == null) {
return json;
}
return {
packId: json["pack_id"] == null ? undefined : json["pack_id"],
packKey: json["pack_key"] == null ? undefined : json["pack_key"],
};
}
2024-06-28 07:49:39 +02:00
export function ApiAddStickerPackRequestToJSON(
value?: ApiAddStickerPackRequest | null,
): any {
if (value == null) {
return value;
}
return {
pack_id: value["packId"],
pack_key: value["packKey"],
};
}