UNPKG

rosetta-sdk-typescript

Version:

Typescript SDK to create and interact with Rosetta API implementations.

45 lines (44 loc) 1.44 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.SubAccountIdentifierToJSON = exports.SubAccountIdentifierFromJSONTyped = exports.SubAccountIdentifierFromJSON = void 0; const runtime_1 = require("../runtime"); function SubAccountIdentifierFromJSON(json) { return SubAccountIdentifierFromJSONTyped(json, false); } exports.SubAccountIdentifierFromJSON = SubAccountIdentifierFromJSON; function SubAccountIdentifierFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { address: json['address'], metadata: !runtime_1.exists(json, 'metadata') ? undefined : json['metadata'], }; } exports.SubAccountIdentifierFromJSONTyped = SubAccountIdentifierFromJSONTyped; function SubAccountIdentifierToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { address: value.address, metadata: value.metadata, }; } exports.SubAccountIdentifierToJSON = SubAccountIdentifierToJSON;