UNPKG

rosetta-sdk-typescript

Version:

Typescript SDK to create and interact with Rosetta API implementations.

43 lines (42 loc) 1.41 kB
"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.BlockTransactionResponseToJSON = exports.BlockTransactionResponseFromJSONTyped = exports.BlockTransactionResponseFromJSON = void 0; const _1 = require("./"); function BlockTransactionResponseFromJSON(json) { return BlockTransactionResponseFromJSONTyped(json, false); } exports.BlockTransactionResponseFromJSON = BlockTransactionResponseFromJSON; function BlockTransactionResponseFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { transaction: _1.TransactionFromJSON(json['transaction']), }; } exports.BlockTransactionResponseFromJSONTyped = BlockTransactionResponseFromJSONTyped; function BlockTransactionResponseToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { transaction: _1.TransactionToJSON(value.transaction), }; } exports.BlockTransactionResponseToJSON = BlockTransactionResponseToJSON;