"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Rosetta
 * Build Once. Integrate Your Blockchain Everywhere.
 *
 * The version of the OpenAPI document: 1.4.10
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventsBlocksResponseToJSON = exports.EventsBlocksResponseFromJSONTyped = exports.EventsBlocksResponseFromJSON = void 0;
const _1 = require("./");
function EventsBlocksResponseFromJSON(json) {
    return EventsBlocksResponseFromJSONTyped(json, false);
}
exports.EventsBlocksResponseFromJSON = EventsBlocksResponseFromJSON;
function EventsBlocksResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json === undefined || json === null) {
        return json;
    }
    return {
        max_sequence: json['max_sequence'],
        events: json['events'].map(_1.BlockEventFromJSON),
    };
}
exports.EventsBlocksResponseFromJSONTyped = EventsBlocksResponseFromJSONTyped;
function EventsBlocksResponseToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        max_sequence: value.max_sequence,
        events: value.events.map(_1.BlockEventToJSON),
    };
}
exports.EventsBlocksResponseToJSON = EventsBlocksResponseToJSON;
