mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
91 lines
2.4 KiB
TypeScript
91 lines
2.4 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Tandoor
|
|
* Tandoor API Docs
|
|
*
|
|
* The version of the OpenAPI document: 0.0.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { mapValues } from '../runtime';
|
|
import type { SupermarketCategory } from './SupermarketCategory';
|
|
import {
|
|
SupermarketCategoryFromJSON,
|
|
SupermarketCategoryFromJSONTyped,
|
|
SupermarketCategoryToJSON,
|
|
} from './SupermarketCategory';
|
|
|
|
/**
|
|
* Adds nested create feature
|
|
* @export
|
|
* @interface PatchedSupermarketCategoryRelation
|
|
*/
|
|
export interface PatchedSupermarketCategoryRelation {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedSupermarketCategoryRelation
|
|
*/
|
|
readonly id?: number;
|
|
/**
|
|
*
|
|
* @type {SupermarketCategory}
|
|
* @memberof PatchedSupermarketCategoryRelation
|
|
*/
|
|
category?: SupermarketCategory;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedSupermarketCategoryRelation
|
|
*/
|
|
supermarket?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedSupermarketCategoryRelation
|
|
*/
|
|
order?: number;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the PatchedSupermarketCategoryRelation interface.
|
|
*/
|
|
export function instanceOfPatchedSupermarketCategoryRelation(value: object): boolean {
|
|
return true;
|
|
}
|
|
|
|
export function PatchedSupermarketCategoryRelationFromJSON(json: any): PatchedSupermarketCategoryRelation {
|
|
return PatchedSupermarketCategoryRelationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function PatchedSupermarketCategoryRelationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSupermarketCategoryRelation {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'category': json['category'] == null ? undefined : SupermarketCategoryFromJSON(json['category']),
|
|
'supermarket': json['supermarket'] == null ? undefined : json['supermarket'],
|
|
'order': json['order'] == null ? undefined : json['order'],
|
|
};
|
|
}
|
|
|
|
export function PatchedSupermarketCategoryRelationToJSON(value?: Omit<PatchedSupermarketCategoryRelation, 'id'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'category': SupermarketCategoryToJSON(value['category']),
|
|
'supermarket': value['supermarket'],
|
|
'order': value['order'],
|
|
};
|
|
}
|
|
|