/* 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 { V2WikiHistorySnapshotFromJSON, V2WikiHistorySnapshotToJSON, } from './V2WikiHistorySnapshot';
/**
 * Check if a given object implements the PaginatedResultsOfV2WikiHistorySnapshot interface.
 */
export function instanceOfPaginatedResultsOfV2WikiHistorySnapshot(value) {
    return true;
}
export function PaginatedResultsOfV2WikiHistorySnapshotFromJSON(json) {
    return PaginatedResultsOfV2WikiHistorySnapshotFromJSONTyped(json, false);
}
export function PaginatedResultsOfV2WikiHistorySnapshotFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'totalNumberOfResults': json['totalNumberOfResults'] == null ? undefined : json['totalNumberOfResults'],
        'results': json['results'] == null ? undefined : (json['results'].map(V2WikiHistorySnapshotFromJSON)),
    };
}
export function PaginatedResultsOfV2WikiHistorySnapshotToJSON(json) {
    return PaginatedResultsOfV2WikiHistorySnapshotToJSONTyped(json, false);
}
export function PaginatedResultsOfV2WikiHistorySnapshotToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'totalNumberOfResults': value['totalNumberOfResults'],
        'results': value['results'] == null ? undefined : (value['results'].map(V2WikiHistorySnapshotToJSON)),
    };
}
//# sourceMappingURL=PaginatedResultsOfV2WikiHistorySnapshot.js.map