/* 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 { Keyword } from './Keyword'; import { KeywordFromJSON, KeywordFromJSONTyped, KeywordToJSON, } from './Keyword'; /** * * @export * @interface PaginatedKeywordList */ export interface PaginatedKeywordList { /** * * @type {number} * @memberof PaginatedKeywordList */ count?: number; /** * * @type {string} * @memberof PaginatedKeywordList */ next?: string; /** * * @type {string} * @memberof PaginatedKeywordList */ previous?: string; /** * * @type {Array} * @memberof PaginatedKeywordList */ results?: Array; } /** * Check if a given object implements the PaginatedKeywordList interface. */ export function instanceOfPaginatedKeywordList(value: object): boolean { return true; } export function PaginatedKeywordListFromJSON(json: any): PaginatedKeywordList { return PaginatedKeywordListFromJSONTyped(json, false); } export function PaginatedKeywordListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedKeywordList { 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(KeywordFromJSON)), }; } export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | 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(KeywordToJSON)), }; }