mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
77 lines
1.7 KiB
TypeScript
77 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 RecipeFromSource
|
|
*/
|
|
export interface RecipeFromSource {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeFromSource
|
|
*/
|
|
url?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeFromSource
|
|
*/
|
|
data?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RecipeFromSource
|
|
*/
|
|
bookmarklet?: number;
|
|
}
|
|
|
|
/**
|
|
* 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(value?: RecipeFromSource | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'url': value['url'],
|
|
'data': value['data'],
|
|
'bookmarklet': value['bookmarklet'],
|
|
};
|
|
}
|
|
|