/* 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'; /** * * @export * @interface Organization */ export interface Organization { /** * * @type {string} * @memberof Organization */ slug: string; /** * * @type {string} * @memberof Organization */ name: string; /** * * @type {boolean} * @memberof Organization */ _private?: boolean; /** * * @type {string} * @memberof Organization */ description?: string; } /** * Check if a given object implements the Organization interface. */ export function instanceOfOrganization(value: object): value is Organization { if (!('slug' in value) || value['slug'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function OrganizationFromJSON(json: any): Organization { return OrganizationFromJSONTyped(json, false); } export function OrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Organization { if (json == null) { return json; } return { 'slug': json['slug'], 'name': json['name'], '_private': json['private'] == null ? undefined : json['private'], 'description': json['description'] == null ? undefined : json['description'], }; } export function OrganizationToJSON(json: any): Organization { return OrganizationToJSONTyped(json, false); } export function OrganizationToJSONTyped(value?: Organization | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'slug': value['slug'], 'name': value['name'], 'private': value['_private'], 'description': value['description'], }; }