/* 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 { InteractionFromJSON, InteractionToJSON, } from './Interaction';
/**
 * Check if a given object implements the SessionHistoryResponse interface.
 */
export function instanceOfSessionHistoryResponse(value) {
    return true;
}
export function SessionHistoryResponseFromJSON(json) {
    return SessionHistoryResponseFromJSONTyped(json, false);
}
export function SessionHistoryResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'page': json['page'] == null ? undefined : (json['page'].map(InteractionFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function SessionHistoryResponseToJSON(json) {
    return SessionHistoryResponseToJSONTyped(json, false);
}
export function SessionHistoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sessionId': value['sessionId'],
        'page': value['page'] == null ? undefined : (value['page'].map(InteractionToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=SessionHistoryResponse.js.map