mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
124 lines
3.0 KiB
TypeScript
124 lines
3.0 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Django Recipes
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document:
|
|
*
|
|
*
|
|
* 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 ImportLogKeyword
|
|
*/
|
|
export interface ImportLogKeyword {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly id?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
name: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly label?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
description?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly parent?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly numchild?: number;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly createdAt?: Date;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly updatedAt?: Date;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ImportLogKeyword
|
|
*/
|
|
readonly fullName?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ImportLogKeyword interface.
|
|
*/
|
|
export function instanceOfImportLogKeyword(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "name" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function ImportLogKeywordFromJSON(json: any): ImportLogKeyword {
|
|
return ImportLogKeywordFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ImportLogKeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportLogKeyword {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'name': json['name'],
|
|
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
'numchild': !exists(json, 'numchild') ? undefined : json['numchild'],
|
|
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
|
'fullName': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
};
|
|
}
|
|
|
|
export function ImportLogKeywordToJSON(value?: ImportLogKeyword | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'name': value.name,
|
|
'description': value.description,
|
|
};
|
|
}
|
|
|