/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { OrganizationFromJSON, OrganizationToJSON, } from './Organization';
/**
 * Check if a given object implements the ListOrganizationsResponse interface.
 */
export function instanceOfListOrganizationsResponse(value) {
    return true;
}
export function ListOrganizationsResponseFromJSON(json) {
    return ListOrganizationsResponseFromJSONTyped(json, false);
}
export function ListOrganizationsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'page': json['page'] == null ? undefined : (json['page'].map(OrganizationFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function ListOrganizationsResponseToJSON(json) {
    return ListOrganizationsResponseToJSONTyped(json, false);
}
export function ListOrganizationsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'page': value['page'] == null ? undefined : (value['page'].map(OrganizationToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=ListOrganizationsResponse.js.map