/* 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 { Automation } from './Automation'; import { AutomationFromJSON, AutomationFromJSONTyped, AutomationToJSON, } from './Automation'; /** * * @export * @interface PaginatedAutomationList */ export interface PaginatedAutomationList { /** * * @type {number} * @memberof PaginatedAutomationList */ count?: number; /** * * @type {string} * @memberof PaginatedAutomationList */ next?: string; /** * * @type {string} * @memberof PaginatedAutomationList */ previous?: string; /** * * @type {Array} * @memberof PaginatedAutomationList */ results?: Array; } /** * Check if a given object implements the PaginatedAutomationList interface. */ export function instanceOfPaginatedAutomationList(value: object): boolean { return true; } export function PaginatedAutomationListFromJSON(json: any): PaginatedAutomationList { return PaginatedAutomationListFromJSONTyped(json, false); } export function PaginatedAutomationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAutomationList { 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(AutomationFromJSON)), }; } export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList | 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(AutomationToJSON)), }; }