@getopenpay/client
Version:
OpenPay API TypeScript SDK
52 lines (51 loc) • 1.6 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* OpenPay API
* super charge your subscription management.
*
* The version of the OpenAPI document: 1.2.1
*
*
* 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.instanceOfGenericNodeOutput = instanceOfGenericNodeOutput;
exports.GenericNodeOutputFromJSON = GenericNodeOutputFromJSON;
exports.GenericNodeOutputFromJSONTyped = GenericNodeOutputFromJSONTyped;
exports.GenericNodeOutputToJSON = GenericNodeOutputToJSON;
exports.GenericNodeOutputToJSONTyped = GenericNodeOutputToJSONTyped;
const Node1_1 = require("./Node1");
/**
* Check if a given object implements the GenericNodeOutput interface.
*/
function instanceOfGenericNodeOutput(value) {
if (!('node' in value) || value['node'] === undefined)
return false;
return true;
}
function GenericNodeOutputFromJSON(json) {
return GenericNodeOutputFromJSONTyped(json, false);
}
function GenericNodeOutputFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'node': (0, Node1_1.Node1FromJSON)(json['node']),
};
}
function GenericNodeOutputToJSON(json) {
return GenericNodeOutputToJSONTyped(json, false);
}
function GenericNodeOutputToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'node': (0, Node1_1.Node1ToJSON)(value['node']),
};
}