mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
75 lines
1.7 KiB
TypeScript
75 lines
1.7 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 SourceImportDuplicate
|
|
*/
|
|
export interface SourceImportDuplicate {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof SourceImportDuplicate
|
|
*/
|
|
id?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof SourceImportDuplicate
|
|
*/
|
|
name: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the SourceImportDuplicate interface.
|
|
*/
|
|
export function instanceOfSourceImportDuplicate(value: object): value is SourceImportDuplicate {
|
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function SourceImportDuplicateFromJSON(json: any): SourceImportDuplicate {
|
|
return SourceImportDuplicateFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function SourceImportDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceImportDuplicate {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'name': json['name'],
|
|
};
|
|
}
|
|
|
|
export function SourceImportDuplicateToJSON(json: any): SourceImportDuplicate {
|
|
return SourceImportDuplicateToJSONTyped(json, false);
|
|
}
|
|
|
|
export function SourceImportDuplicateToJSONTyped(value?: SourceImportDuplicate | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'id': value['id'],
|
|
'name': value['name'],
|
|
};
|
|
}
|
|
|