/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 OrganizationDTO */ export interface OrganizationDTO { /** * * @type {string} * @memberof OrganizationDTO */ auth0OrgId?: string; /** * * @type {boolean} * @memberof OrganizationDTO */ isBillingSubscriber?: boolean; /** * * @type {boolean} * @memberof OrganizationDTO */ isOwner?: boolean; /** * * @type {string} * @memberof OrganizationDTO */ logo?: string; /** * * @type {string} * @memberof OrganizationDTO */ name?: string; /** * * @type {number} * @memberof OrganizationDTO */ people?: number; /** * * @type {string} * @memberof OrganizationDTO */ slug?: string; /** * * @type {string} * @memberof OrganizationDTO */ url?: string; } /** * Check if a given object implements the OrganizationDTO interface. */ export function instanceOfOrganizationDTO(value: object): value is OrganizationDTO { return true; } export function OrganizationDTOFromJSON(json: any): OrganizationDTO { return OrganizationDTOFromJSONTyped(json, false); } export function OrganizationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationDTO { if (json == null) { return json; } return { 'auth0OrgId': json['auth0OrgId'] == null ? undefined : json['auth0OrgId'], 'isBillingSubscriber': json['isBillingSubscriber'] == null ? undefined : json['isBillingSubscriber'], 'isOwner': json['isOwner'] == null ? undefined : json['isOwner'], 'logo': json['logo'] == null ? undefined : json['logo'], 'name': json['name'] == null ? undefined : json['name'], 'people': json['people'] == null ? undefined : json['people'], 'slug': json['slug'] == null ? undefined : json['slug'], 'url': json['url'] == null ? undefined : json['url'], }; } export function OrganizationDTOToJSON(json: any): OrganizationDTO { return OrganizationDTOToJSONTyped(json, false); } export function OrganizationDTOToJSONTyped(value?: OrganizationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'auth0OrgId': value['auth0OrgId'], 'isBillingSubscriber': value['isBillingSubscriber'], 'isOwner': value['isOwner'], 'logo': value['logo'], 'name': value['name'], 'people': value['people'], 'slug': value['slug'], 'url': value['url'], }; }