/* 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 { Organization } from './Organization'; import { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON, OrganizationToJSONTyped, } from './Organization'; /** * * @export * @interface PaginatedOrganizationList */ export interface PaginatedOrganizationList { /** * * @type {number} * @memberof PaginatedOrganizationList */ count: number; /** * * @type {string} * @memberof PaginatedOrganizationList */ next?: string | null; /** * * @type {string} * @memberof PaginatedOrganizationList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedOrganizationList */ results: Array; } /** * Check if a given object implements the PaginatedOrganizationList interface. */ export function instanceOfPaginatedOrganizationList(value: object): value is PaginatedOrganizationList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedOrganizationListFromJSON(json: any): PaginatedOrganizationList { return PaginatedOrganizationListFromJSONTyped(json, false); } export function PaginatedOrganizationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOrganizationList { 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(OrganizationFromJSON)), }; } export function PaginatedOrganizationListToJSON(json: any): PaginatedOrganizationList { return PaginatedOrganizationListToJSONTyped(json, false); } export function PaginatedOrganizationListToJSONTyped(value?: PaginatedOrganizationList | 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(OrganizationToJSON)), }; }