/* 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 { GridSessionFromJSON, GridSessionToJSON, } from './GridSession';
/**
 * Check if a given object implements the ListGridSessionsResponse interface.
 */
export function instanceOfListGridSessionsResponse(value) {
    return true;
}
export function ListGridSessionsResponseFromJSON(json) {
    return ListGridSessionsResponseFromJSONTyped(json, false);
}
export function ListGridSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'page': json['page'] == null ? undefined : (json['page'].map(GridSessionFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function ListGridSessionsResponseToJSON(json) {
    return ListGridSessionsResponseToJSONTyped(json, false);
}
export function ListGridSessionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'page': value['page'] == null ? undefined : (value['page'].map(GridSessionToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=ListGridSessionsResponse.js.map