mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
112 lines
2.6 KiB
TypeScript
112 lines
2.6 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 { mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface RecipeImport
|
|
*/
|
|
export interface RecipeImport {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RecipeImport
|
|
*/
|
|
id?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeImport
|
|
*/
|
|
name: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeImport
|
|
*/
|
|
fileUid?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeImport
|
|
*/
|
|
filePath?: string;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof RecipeImport
|
|
*/
|
|
readonly createdAt: Date;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RecipeImport
|
|
*/
|
|
storage: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RecipeImport
|
|
*/
|
|
space: number;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the RecipeImport interface.
|
|
*/
|
|
export function instanceOfRecipeImport(value: object): value is RecipeImport {
|
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
if (!('storage' in value) || value['storage'] === undefined) return false;
|
|
if (!('space' in value) || value['space'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function RecipeImportFromJSON(json: any): RecipeImport {
|
|
return RecipeImportFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function RecipeImportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeImport {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'name': json['name'],
|
|
'fileUid': json['file_uid'] == null ? undefined : json['file_uid'],
|
|
'filePath': json['file_path'] == null ? undefined : json['file_path'],
|
|
'createdAt': (new Date(json['created_at'])),
|
|
'storage': json['storage'],
|
|
'space': json['space'],
|
|
};
|
|
}
|
|
|
|
export function RecipeImportToJSON(value?: Omit<RecipeImport, 'createdAt'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'id': value['id'],
|
|
'name': value['name'],
|
|
'file_uid': value['fileUid'],
|
|
'file_path': value['filePath'],
|
|
'storage': value['storage'],
|
|
'space': value['space'],
|
|
};
|
|
}
|
|
|