/* 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 { Food } from './Food'; import { FoodFromJSON, FoodFromJSONTyped, FoodToJSON, } from './Food'; /** * * @export * @interface PaginatedFoodList */ export interface PaginatedFoodList { /** * * @type {number} * @memberof PaginatedFoodList */ count?: number; /** * * @type {string} * @memberof PaginatedFoodList */ next?: string; /** * * @type {string} * @memberof PaginatedFoodList */ previous?: string; /** * * @type {Array} * @memberof PaginatedFoodList */ results?: Array; } /** * Check if a given object implements the PaginatedFoodList interface. */ export function instanceOfPaginatedFoodList(value: object): boolean { return true; } export function PaginatedFoodListFromJSON(json: any): PaginatedFoodList { return PaginatedFoodListFromJSONTyped(json, false); } export function PaginatedFoodListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFoodList { if (json == null) { return json; } return { 'count': json['count'] == null ? undefined : json['count'], 'next': json['next'] == null ? undefined : json['next'], 'previous': json['previous'] == null ? undefined : json['previous'], 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(FoodFromJSON)), }; } export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(FoodToJSON)), }; }