mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
87 lines
2.1 KiB
TypeScript
87 lines
2.1 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 BookmarkletImportList
|
|
*/
|
|
export interface BookmarkletImportList {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof BookmarkletImportList
|
|
*/
|
|
readonly id?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof BookmarkletImportList
|
|
*/
|
|
url?: string | null;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof BookmarkletImportList
|
|
*/
|
|
readonly createdBy?: string;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof BookmarkletImportList
|
|
*/
|
|
readonly createdAt?: Date;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the BookmarkletImportList interface.
|
|
*/
|
|
export function instanceOfBookmarkletImportList(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function BookmarkletImportListFromJSON(json: any): BookmarkletImportList {
|
|
return BookmarkletImportListFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarkletImportList {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
};
|
|
}
|
|
|
|
export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'url': value.url,
|
|
};
|
|
}
|
|
|