/* 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 { OpenSubmissionFromJSON, OpenSubmissionToJSON, } from './OpenSubmission';
/**
 * Check if a given object implements the OpenSubmissionPage interface.
 */
export function instanceOfOpenSubmissionPage(value) {
    return true;
}
export function OpenSubmissionPageFromJSON(json) {
    return OpenSubmissionPageFromJSONTyped(json, false);
}
export function OpenSubmissionPageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'openSubmissionList': json['openSubmissionList'] == null ? undefined : (json['openSubmissionList'].map(OpenSubmissionFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function OpenSubmissionPageToJSON(json) {
    return OpenSubmissionPageToJSONTyped(json, false);
}
export function OpenSubmissionPageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'openSubmissionList': value['openSubmissionList'] == null ? undefined : (value['openSubmissionList'].map(OpenSubmissionToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=OpenSubmissionPage.js.map