mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
fixed api client generation
This commit is contained in:
@@ -24,7 +24,7 @@ export interface BookmarkletImport {
|
||||
* @type {number}
|
||||
* @memberof BookmarkletImport
|
||||
*/
|
||||
id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -55,6 +55,7 @@ export interface BookmarkletImport {
|
||||
* Check if a given object implements the BookmarkletImport interface.
|
||||
*/
|
||||
export function instanceOfBookmarkletImport(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('html' in value)) return false;
|
||||
if (!('createdBy' in value)) return false;
|
||||
if (!('createdAt' in value)) return false;
|
||||
@@ -71,7 +72,7 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'url': json['url'] == null ? undefined : json['url'],
|
||||
'html': json['html'],
|
||||
'createdBy': json['created_by'],
|
||||
@@ -85,7 +86,6 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'url': value['url'],
|
||||
'html': value['html'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user