/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * 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 { ListOrganizations200ResponseOrganizationsInner } from './ListOrganizations200ResponseOrganizationsInner';
import {
    ListOrganizations200ResponseOrganizationsInnerFromJSON,
    ListOrganizations200ResponseOrganizationsInnerFromJSONTyped,
    ListOrganizations200ResponseOrganizationsInnerToJSON,
} from './ListOrganizations200ResponseOrganizationsInner';

/**
 * 
 * @export
 * @interface ListOrganizations200Response
 */
export interface ListOrganizations200Response {
    /**
     * 
     * @type {Array<ListOrganizations200ResponseOrganizationsInner>}
     * @memberof ListOrganizations200Response
     */
    organizations?: Array<ListOrganizations200ResponseOrganizationsInner>;
}

/**
 * Check if a given object implements the ListOrganizations200Response interface.
 */
export function instanceOfListOrganizations200Response(value: object): value is ListOrganizations200Response {
    return true;
}

export function ListOrganizations200ResponseFromJSON(json: any): ListOrganizations200Response {
    return ListOrganizations200ResponseFromJSONTyped(json, false);
}

export function ListOrganizations200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrganizations200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'organizations': json['organizations'] == null ? undefined : ((json['organizations'] as Array<any>).map(ListOrganizations200ResponseOrganizationsInnerFromJSON)),
    };
}

export function ListOrganizations200ResponseToJSON(value?: ListOrganizations200Response | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'organizations': value['organizations'] == null ? undefined : ((value['organizations'] as Array<any>).map(ListOrganizations200ResponseOrganizationsInnerToJSON)),
    };
}

