mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
basic url importer working
This commit is contained in:
81
vue3/src/openapi/models/RecipeFromSource.ts
Normal file
81
vue3/src/openapi/models/RecipeFromSource.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/* 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 RecipeFromSource
|
||||
*/
|
||||
export interface RecipeFromSource {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RecipeFromSource
|
||||
*/
|
||||
url?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RecipeFromSource
|
||||
*/
|
||||
data?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeFromSource
|
||||
*/
|
||||
bookmarklet?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RecipeFromSource interface.
|
||||
*/
|
||||
export function instanceOfRecipeFromSource(value: object): value is RecipeFromSource {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RecipeFromSourceFromJSON(json: any): RecipeFromSource {
|
||||
return RecipeFromSourceFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeFromSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeFromSource {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'url': json['url'] == null ? undefined : json['url'],
|
||||
'data': json['data'] == null ? undefined : json['data'],
|
||||
'bookmarklet': json['bookmarklet'] == null ? undefined : json['bookmarklet'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RecipeFromSourceToJSON(json: any): RecipeFromSource {
|
||||
return RecipeFromSourceToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeFromSourceToJSONTyped(value?: RecipeFromSource | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'url': value['url'],
|
||||
'data': value['data'],
|
||||
'bookmarklet': value['bookmarklet'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user