/* tslint:disable */ /* eslint-disable */ /** * authentik Blueprint Registry * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * Contact: hello@goauthentik.io * * 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 { AuthentikVersion } from './AuthentikVersion'; import { AuthentikVersionFromJSON, AuthentikVersionFromJSONTyped, AuthentikVersionToJSON, AuthentikVersionToJSONTyped, } from './AuthentikVersion'; /** * * @export * @interface PaginatedAuthentikVersionList */ export interface PaginatedAuthentikVersionList { /** * * @type {number} * @memberof PaginatedAuthentikVersionList */ count: number; /** * * @type {string} * @memberof PaginatedAuthentikVersionList */ next?: string | null; /** * * @type {string} * @memberof PaginatedAuthentikVersionList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedAuthentikVersionList */ results: Array; } /** * Check if a given object implements the PaginatedAuthentikVersionList interface. */ export function instanceOfPaginatedAuthentikVersionList(value: object): value is PaginatedAuthentikVersionList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedAuthentikVersionListFromJSON(json: any): PaginatedAuthentikVersionList { return PaginatedAuthentikVersionListFromJSONTyped(json, false); } export function PaginatedAuthentikVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthentikVersionList { 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(AuthentikVersionFromJSON)), }; } export function PaginatedAuthentikVersionListToJSON(json: any): PaginatedAuthentikVersionList { return PaginatedAuthentikVersionListToJSONTyped(json, false); } export function PaginatedAuthentikVersionListToJSONTyped(value?: PaginatedAuthentikVersionList | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(AuthentikVersionToJSON)), }; }