Files
recipes/vue3/models/BookmarkletImportList.ts
2024-04-18 10:56:15 -05:00

85 lines
1.9 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 BookmarkletImportList
*/
export interface BookmarkletImportList {
/**
*
* @type {number}
* @memberof BookmarkletImportList
*/
readonly id: number;
/**
*
* @type {string}
* @memberof BookmarkletImportList
*/
url?: string;
/**
*
* @type {number}
* @memberof BookmarkletImportList
*/
readonly createdBy: number;
/**
*
* @type {Date}
* @memberof BookmarkletImportList
*/
readonly createdAt: Date;
}
/**
* Check if a given object implements the BookmarkletImportList interface.
*/
export function instanceOfBookmarkletImportList(value: object): boolean {
if (!('id' in value)) return false;
if (!('createdBy' in value)) return false;
if (!('createdAt' in value)) return false;
return true;
}
export function BookmarkletImportListFromJSON(json: any): BookmarkletImportList {
return BookmarkletImportListFromJSONTyped(json, false);
}
export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookmarkletImportList {
if (json == null) {
return json;
}
return {
'id': json['id'],
'url': json['url'] == null ? undefined : json['url'],
'createdBy': json['created_by'],
'createdAt': (new Date(json['created_at'])),
};
}
export function BookmarkletImportListToJSON(value?: Omit<BookmarkletImportList, 'id'|'created_by'|'created_at'> | null): any {
if (value == null) {
return value;
}
return {
'url': value['url'],
};
}