/* tslint:disable */ /* eslint-disable */ /** * Equisoft /plan API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: latest * * * 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 OrganizationsOrganization */ export interface OrganizationsOrganization { /** * * @type {number} * @memberof OrganizationsOrganization */ id: number; /** * * @type {string} * @memberof OrganizationsOrganization */ accountType: string; /** * * @type {string} * @memberof OrganizationsOrganization */ externalDatabase?: string | null; /** * * @type {string} * @memberof OrganizationsOrganization */ organizationUuid?: string | null; } /** * Check if a given object implements the OrganizationsOrganization interface. */ export function instanceOfOrganizationsOrganization(value: object): value is OrganizationsOrganization { if (!('id' in value) || value['id'] === undefined) return false; if (!('accountType' in value) || value['accountType'] === undefined) return false; return true; } export function OrganizationsOrganizationFromJSON(json: any): OrganizationsOrganization { return OrganizationsOrganizationFromJSONTyped(json, false); } export function OrganizationsOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganization { if (json == null) { return json; } return { 'id': json['id'], 'accountType': json['accountType'], 'externalDatabase': json['externalDatabase'] == null ? undefined : json['externalDatabase'], 'organizationUuid': json['organizationUuid'] == null ? undefined : json['organizationUuid'], }; } export function OrganizationsOrganizationToJSON(json: any): OrganizationsOrganization { return OrganizationsOrganizationToJSONTyped(json, false); } export function OrganizationsOrganizationToJSONTyped(value?: OrganizationsOrganization | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'accountType': value['accountType'], 'externalDatabase': value['externalDatabase'], 'organizationUuid': value['organizationUuid'], }; }