/* 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'; import type { OrganizationsOrganization } from './OrganizationsOrganization'; import { OrganizationsOrganizationFromJSON, OrganizationsOrganizationFromJSONTyped, OrganizationsOrganizationToJSON, OrganizationsOrganizationToJSONTyped, } from './OrganizationsOrganization'; /** * * @export * @interface OrganizationsListOrganizationsResponse */ export interface OrganizationsListOrganizationsResponse { /** * * @type {number} * @memberof OrganizationsListOrganizationsResponse */ count: number; /** * * @type {Array} * @memberof OrganizationsListOrganizationsResponse */ results: Array; } /** * Check if a given object implements the OrganizationsListOrganizationsResponse interface. */ export function instanceOfOrganizationsListOrganizationsResponse(value: object): value is OrganizationsListOrganizationsResponse { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function OrganizationsListOrganizationsResponseFromJSON(json: any): OrganizationsListOrganizationsResponse { return OrganizationsListOrganizationsResponseFromJSONTyped(json, false); } export function OrganizationsListOrganizationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsListOrganizationsResponse { if (json == null) { return json; } return { 'count': json['count'], 'results': ((json['results'] as Array).map(OrganizationsOrganizationFromJSON)), }; } export function OrganizationsListOrganizationsResponseToJSON(json: any): OrganizationsListOrganizationsResponse { return OrganizationsListOrganizationsResponseToJSONTyped(json, false); } export function OrganizationsListOrganizationsResponseToJSONTyped(value?: OrganizationsListOrganizationsResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'count': value['count'], 'results': ((value['results'] as Array).map(OrganizationsOrganizationToJSON)), }; }