text: "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.BlockResponseToJSON = exports.BlockResponseFromJSONTyped = exports.BlockResponseFromJSON = void 0;
  const runtime_1 = require("../runtime");
  const _1 = require("./");
  function BlockResponseFromJSON(json) {
      return BlockResponseFromJSONTyped(json, false);
  }
  exports.BlockResponseFromJSON = BlockResponseFromJSON;
  function BlockResponseFromJSONTyped(json, ignoreDiscriminator) {
      if (json === undefined || json === null) {
          return json;
      }
      return {
          block: !(0, runtime_1.exists)(json, 'block') ? undefined : (0, _1.BlockFromJSON)(json['block']),
          other_transactions: !(0, runtime_1.exists)(json, 'other_transactions')
              ? undefined
              : json['other_transactions'].map(_1.TransactionIdentifierFromJSON),
      };
  }
  exports.BlockResponseFromJSONTyped = BlockResponseFromJSONTyped;
  function BlockResponseToJSON(value) {
      if (value === undefined) {
          return undefined;
      }
      if (value === null) {
          return null;
      }
      return {
          block: (0, _1.BlockToJSON)(value.block),
          other_transactions: value.other_transactions === undefined ? undefined : value.other_transactions.map(_1.TransactionIdentifierToJSON),
      };
  }
  exports.BlockResponseToJSON = BlockResponseToJSON;
  