"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * 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.TrialInputArgsToJSON = exports.TrialInputArgsFromJSONTyped = exports.TrialInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function TrialInputArgsFromJSON(json) {
    return TrialInputArgsFromJSONTyped(json, false);
}
exports.TrialInputArgsFromJSON = TrialInputArgsFromJSON;
function TrialInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'credit': !(0, runtime_1.exists)(json, 'credit') ? undefined : json['credit'],
        'timeLength': !(0, runtime_1.exists)(json, 'time_length') ? undefined : json['time_length'],
        'timeUnitName': !(0, runtime_1.exists)(json, 'time_unit_name') ? undefined : json['time_unit_name'],
    };
}
exports.TrialInputArgsFromJSONTyped = TrialInputArgsFromJSONTyped;
function TrialInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'credit': value.credit,
        'time_length': value.timeLength,
        'time_unit_name': value.timeUnitName,
    };
}
exports.TrialInputArgsToJSON = TrialInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHJpYWxJbnB1dEFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvVHJpYWxJbnB1dEFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBMkIvQyxTQUFnQixzQkF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