/* 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 { PortalFromJSON, PortalToJSON, } from './Portal';
/**
 * Check if a given object implements the ListPortalsResponse interface.
 */
export function instanceOfListPortalsResponse(value) {
    return true;
}
export function ListPortalsResponseFromJSON(json) {
    return ListPortalsResponseFromJSONTyped(json, false);
}
export function ListPortalsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'page': json['page'] == null ? undefined : (json['page'].map(PortalFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function ListPortalsResponseToJSON(json) {
    return ListPortalsResponseToJSONTyped(json, false);
}
export function ListPortalsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'page': value['page'] == null ? undefined : (value['page'].map(PortalToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=ListPortalsResponse.js.map