mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
working on model select
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -48,7 +48,7 @@ export interface PatchedSync {
|
||||
* @type {Date}
|
||||
* @memberof PatchedSync
|
||||
*/
|
||||
lastChecked?: Date | null;
|
||||
lastChecked?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
@@ -63,40 +63,43 @@ export interface PatchedSync {
|
||||
readonly updatedAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PatchedSync interface.
|
||||
*/
|
||||
export function instanceOfPatchedSync(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PatchedSyncFromJSON(json: any): PatchedSync {
|
||||
return PatchedSyncFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PatchedSyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSync {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'storage': !exists(json, 'storage') ? undefined : json['storage'],
|
||||
'path': !exists(json, 'path') ? undefined : json['path'],
|
||||
'active': !exists(json, 'active') ? undefined : json['active'],
|
||||
'lastChecked': !exists(json, 'last_checked') ? undefined : (json['last_checked'] === null ? null : new Date(json['last_checked'])),
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'storage': json['storage'] == null ? undefined : json['storage'],
|
||||
'path': json['path'] == null ? undefined : json['path'],
|
||||
'active': json['active'] == null ? undefined : json['active'],
|
||||
'lastChecked': json['last_checked'] == null ? undefined : (new Date(json['last_checked'])),
|
||||
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
||||
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedSyncToJSON(value?: PatchedSync | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'storage': value.storage,
|
||||
'path': value.path,
|
||||
'active': value.active,
|
||||
'last_checked': value.lastChecked === undefined ? undefined : (value.lastChecked === null ? null : value.lastChecked.toISOString()),
|
||||
'storage': value['storage'],
|
||||
'path': value['path'],
|
||||
'active': value['active'],
|
||||
'last_checked': value['lastChecked'] == null ? undefined : ((value['lastChecked'] as any).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user