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.MempoolTransactionResponseToJSON = exports.MempoolTransactionResponseFromJSONTyped = exports.MempoolTransactionResponseFromJSON = void 0;
  const runtime_1 = require("../runtime");
  const _1 = require("./");
  function MempoolTransactionResponseFromJSON(json) {
      return MempoolTransactionResponseFromJSONTyped(json, false);
  }
  exports.MempoolTransactionResponseFromJSON = MempoolTransactionResponseFromJSON;
  function MempoolTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
      if (json === undefined || json === null) {
          return json;
      }
      return {
          transaction: (0, _1.TransactionFromJSON)(json['transaction']),
          metadata: !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
      };
  }
  exports.MempoolTransactionResponseFromJSONTyped = MempoolTransactionResponseFromJSONTyped;
  function MempoolTransactionResponseToJSON(value) {
      if (value === undefined) {
          return undefined;
      }
      if (value === null) {
          return null;
      }
      return {
          transaction: (0, _1.TransactionToJSON)(value.transaction),
          metadata: value.metadata,
      };
  }
  exports.MempoolTransactionResponseToJSON = MempoolTransactionResponseToJSON;
  