mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-30 21:49:50 -05:00
91 lines
1.9 KiB
TypeScript
91 lines
1.9 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Tandoor
|
|
* Tandoor API Docs
|
|
*
|
|
* The version of the OpenAPI document: 0.0.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 { exists, mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface UserFileView
|
|
*/
|
|
export interface UserFileView {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof UserFileView
|
|
*/
|
|
readonly id: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof UserFileView
|
|
*/
|
|
name: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof UserFileView
|
|
*/
|
|
readonly fileDownload: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof UserFileView
|
|
*/
|
|
readonly preview: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the UserFileView interface.
|
|
*/
|
|
export function instanceOfUserFileView(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "id" in value;
|
|
isInstance = isInstance && "name" in value;
|
|
isInstance = isInstance && "fileDownload" in value;
|
|
isInstance = isInstance && "preview" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function UserFileViewFromJSON(json: any): UserFileView {
|
|
return UserFileViewFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function UserFileViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFileView {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'],
|
|
'name': json['name'],
|
|
'fileDownload': json['file_download'],
|
|
'preview': json['preview'],
|
|
};
|
|
}
|
|
|
|
export function UserFileViewToJSON(value?: UserFileView | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'name': value.name,
|
|
};
|
|
}
|
|
|