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

76 lines
1.6 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 ApiUpdateProfileRequest
*/
export interface ApiUpdateProfileRequest {
2024-06-28 07:49:39 +02:00
/**
*
* @type {string}
* @memberof ApiUpdateProfileRequest
*/
base64Avatar?: string;
/**
*
* @type {string}
* @memberof ApiUpdateProfileRequest
*/
name?: string;
}
/**
* Check if a given object implements the ApiUpdateProfileRequest interface.
*/
2024-06-28 07:49:39 +02:00
export function instanceOfApiUpdateProfileRequest(
value: object,
): value is ApiUpdateProfileRequest {
return true;
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateProfileRequestFromJSON(
json: any,
): ApiUpdateProfileRequest {
return ApiUpdateProfileRequestFromJSONTyped(json, false);
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateProfileRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApiUpdateProfileRequest {
if (json == null) {
return json;
}
return {
base64Avatar:
json["base64_avatar"] == null ? undefined : json["base64_avatar"],
name: json["name"] == null ? undefined : json["name"],
};
}
2024-06-28 07:49:39 +02:00
export function ApiUpdateProfileRequestToJSON(
value?: ApiUpdateProfileRequest | null,
): any {
if (value == null) {
return value;
}
return {
base64_avatar: value["base64Avatar"],
name: value["name"],
};
}