mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -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
|
||||
@@ -51,12 +51,23 @@ export interface SyncLog {
|
||||
readonly createdAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SyncLog interface.
|
||||
*/
|
||||
export function instanceOfSyncLog(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('sync' in value)) return false;
|
||||
if (!('status' in value)) return false;
|
||||
if (!('createdAt' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SyncLogFromJSON(json: any): SyncLog {
|
||||
return SyncLogFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncLog {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
@@ -64,24 +75,20 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
||||
'id': json['id'],
|
||||
'sync': json['sync'],
|
||||
'status': json['status'],
|
||||
'msg': !exists(json, 'msg') ? undefined : json['msg'],
|
||||
'msg': json['msg'] == null ? undefined : json['msg'],
|
||||
'createdAt': (new Date(json['created_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function SyncLogToJSON(value?: SyncLog | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'sync': value.sync,
|
||||
'status': value.status,
|
||||
'msg': value.msg,
|
||||
'sync': value['sync'],
|
||||
'status': value['status'],
|
||||
'msg': value['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user