mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
fixed api client generation
This commit is contained in:
@@ -31,7 +31,7 @@ export interface OpenDataFoodProperty {
|
||||
* @type {number}
|
||||
* @memberof OpenDataFoodProperty
|
||||
*/
|
||||
id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {OpenDataProperty}
|
||||
@@ -50,6 +50,7 @@ export interface OpenDataFoodProperty {
|
||||
* Check if a given object implements the OpenDataFoodProperty interface.
|
||||
*/
|
||||
export function instanceOfOpenDataFoodProperty(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('property' in value)) return false;
|
||||
if (!('propertyAmount' in value)) return false;
|
||||
return true;
|
||||
@@ -65,7 +66,7 @@ export function OpenDataFoodPropertyFromJSONTyped(json: any, ignoreDiscriminator
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'property': OpenDataPropertyFromJSON(json['property']),
|
||||
'propertyAmount': json['property_amount'],
|
||||
};
|
||||
@@ -77,7 +78,6 @@ export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null):
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'property': OpenDataPropertyToJSON(value['property']),
|
||||
'property_amount': value['propertyAmount'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user