/* 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 { Blueprint } from './Blueprint'; import { BlueprintFromJSON, BlueprintFromJSONTyped, BlueprintToJSON, BlueprintToJSONTyped, } from './Blueprint'; /** * * @export * @interface PaginatedBlueprintList */ export interface PaginatedBlueprintList { /** * * @type {number} * @memberof PaginatedBlueprintList */ count: number; /** * * @type {string} * @memberof PaginatedBlueprintList */ next?: string | null; /** * * @type {string} * @memberof PaginatedBlueprintList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedBlueprintList */ results: Array; } /** * Check if a given object implements the PaginatedBlueprintList interface. */ export function instanceOfPaginatedBlueprintList(value: object): value is PaginatedBlueprintList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedBlueprintListFromJSON(json: any): PaginatedBlueprintList { return PaginatedBlueprintListFromJSONTyped(json, false); } export function PaginatedBlueprintListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlueprintList { 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(BlueprintFromJSON)), }; } export function PaginatedBlueprintListToJSON(json: any): PaginatedBlueprintList { return PaginatedBlueprintListToJSONTyped(json, false); } export function PaginatedBlueprintListToJSONTyped(value?: PaginatedBlueprintList | 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(BlueprintToJSON)), }; }