/* 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 { Property } from './Property'; import { PropertyFromJSON, PropertyFromJSONTyped, PropertyToJSON, } from './Property'; /** * * @export * @interface PaginatedPropertyList */ export interface PaginatedPropertyList { /** * * @type {number} * @memberof PaginatedPropertyList */ count: number; /** * * @type {string} * @memberof PaginatedPropertyList */ next?: string; /** * * @type {string} * @memberof PaginatedPropertyList */ previous?: string; /** * * @type {Array} * @memberof PaginatedPropertyList */ results: Array; /** * * @type {Date} * @memberof PaginatedPropertyList */ timestamp?: Date; } /** * Check if a given object implements the PaginatedPropertyList interface. */ export function instanceOfPaginatedPropertyList(value: object): value is PaginatedPropertyList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedPropertyListFromJSON(json: any): PaginatedPropertyList { return PaginatedPropertyListFromJSONTyped(json, false); } export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyList { if (json == null) { return json; } return { 'count': json['count'], 'next': json['next'] == null ? undefined : json['next'], 'previous': json['previous'] == null ? undefined : json['previous'], 'results': ((json['results'] as Array).map(PropertyFromJSON)), 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])), }; } export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(PropertyToJSON)), 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()), }; }