mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
import stuff
This commit is contained in:
74
vue3/src/openapi/models/SourceImportDuplicate.ts
Normal file
74
vue3/src/openapi/models/SourceImportDuplicate.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/* 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'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user