UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

58 lines (57 loc) 2.28 kB
"use strict"; /* 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.instanceOfAllConditionsTrueBranchOutput = instanceOfAllConditionsTrueBranchOutput; exports.AllConditionsTrueBranchOutputFromJSON = AllConditionsTrueBranchOutputFromJSON; exports.AllConditionsTrueBranchOutputFromJSONTyped = AllConditionsTrueBranchOutputFromJSONTyped; exports.AllConditionsTrueBranchOutputToJSON = AllConditionsTrueBranchOutputToJSON; exports.AllConditionsTrueBranchOutputToJSONTyped = AllConditionsTrueBranchOutputToJSONTyped; const Condition_1 = require("./Condition"); /** * Check if a given object implements the AllConditionsTrueBranchOutput interface. */ function instanceOfAllConditionsTrueBranchOutput(value) { if (!('ifAllConditionsTrue' in value) || value['ifAllConditionsTrue'] === undefined) return false; if (!('thenGoToNodeId' in value) || value['thenGoToNodeId'] === undefined) return false; return true; } function AllConditionsTrueBranchOutputFromJSON(json) { return AllConditionsTrueBranchOutputFromJSONTyped(json, false); } function AllConditionsTrueBranchOutputFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'branchName': json['branch_name'] == null ? undefined : json['branch_name'], 'ifAllConditionsTrue': (json['if_all_conditions_true'].map(Condition_1.ConditionFromJSON)), 'thenGoToNodeId': json['then_go_to_node_id'], }; } function AllConditionsTrueBranchOutputToJSON(json) { return AllConditionsTrueBranchOutputToJSONTyped(json, false); } function AllConditionsTrueBranchOutputToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'branch_name': value['branchName'], 'if_all_conditions_true': (value['ifAllConditionsTrue'].map(Condition_1.ConditionToJSON)), 'then_go_to_node_id': value['thenGoToNodeId'], }; }