rosetta-sdk-typescript
Version:
Typescript SDK to create and interact with Rosetta API implementations.
47 lines (46 loc) • 1.6 kB
JavaScript
;
/* 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.ConstructionParseRequestToJSON = exports.ConstructionParseRequestFromJSONTyped = exports.ConstructionParseRequestFromJSON = void 0;
const _1 = require("./");
function ConstructionParseRequestFromJSON(json) {
return ConstructionParseRequestFromJSONTyped(json, false);
}
exports.ConstructionParseRequestFromJSON = ConstructionParseRequestFromJSON;
function ConstructionParseRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
network_identifier: _1.NetworkIdentifierFromJSON(json['network_identifier']),
signed: json['signed'],
transaction: json['transaction'],
};
}
exports.ConstructionParseRequestFromJSONTyped = ConstructionParseRequestFromJSONTyped;
function ConstructionParseRequestToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
network_identifier: _1.NetworkIdentifierToJSON(value.network_identifier),
signed: value.signed,
transaction: value.transaction,
};
}
exports.ConstructionParseRequestToJSON = ConstructionParseRequestToJSON;