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