/* 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 { BlueprintVersion } from './BlueprintVersion'; import { BlueprintVersionFromJSON, BlueprintVersionFromJSONTyped, BlueprintVersionToJSON, BlueprintVersionToJSONTyped, } from './BlueprintVersion'; /** * * @export * @interface PaginatedBlueprintVersionList */ export interface PaginatedBlueprintVersionList { /** * * @type {number} * @memberof PaginatedBlueprintVersionList */ count: number; /** * * @type {string} * @memberof PaginatedBlueprintVersionList */ next?: string | null; /** * * @type {string} * @memberof PaginatedBlueprintVersionList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedBlueprintVersionList */ results: Array; } /** * Check if a given object implements the PaginatedBlueprintVersionList interface. */ export function instanceOfPaginatedBlueprintVersionList(value: object): value is PaginatedBlueprintVersionList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedBlueprintVersionListFromJSON(json: any): PaginatedBlueprintVersionList { return PaginatedBlueprintVersionListFromJSONTyped(json, false); } export function PaginatedBlueprintVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlueprintVersionList { 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(BlueprintVersionFromJSON)), }; } export function PaginatedBlueprintVersionListToJSON(json: any): PaginatedBlueprintVersionList { return PaginatedBlueprintVersionListToJSONTyped(json, false); } export function PaginatedBlueprintVersionListToJSONTyped(value?: PaginatedBlueprintVersionList | 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(BlueprintVersionToJSON)), }; }