mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
autosync WIP
This commit is contained in:
@@ -50,6 +50,12 @@ export interface PaginatedKeywordList {
|
||||
* @memberof PaginatedKeywordList
|
||||
*/
|
||||
results: Array<Keyword>;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PaginatedKeywordList
|
||||
*/
|
||||
timestamp?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,6 +81,7 @@ export function PaginatedKeywordListFromJSONTyped(json: any, ignoreDiscriminator
|
||||
'next': json['next'] == null ? undefined : json['next'],
|
||||
'previous': json['previous'] == null ? undefined : json['previous'],
|
||||
'results': ((json['results'] as Array<any>).map(KeywordFromJSON)),
|
||||
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -88,6 +95,7 @@ export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null):
|
||||
'next': value['next'],
|
||||
'previous': value['previous'],
|
||||
'results': ((value['results'] as Array<any>).map(KeywordToJSON)),
|
||||
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user