"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.TrialToJSON = exports.TrialFromJSONTyped = exports.TrialFromJSON = void 0;
const runtime_1 = require("../runtime");
function TrialFromJSON(json) {
    return TrialFromJSONTyped(json, false);
}
exports.TrialFromJSON = TrialFromJSON;
function TrialFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        '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'],
        'credit': !(0, runtime_1.exists)(json, 'credit') ? undefined : json['credit'],
    };
}
exports.TrialFromJSONTyped = TrialFromJSONTyped;
function TrialToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'time_length': value.timeLength,
        'time_unit_name': value.timeUnitName,
        'credit': value.credit,
    };
}
exports.TrialToJSON = TrialToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHJpYWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvVHJpYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBMkIvQyxTQUFnQixhQUFhLENBQUMsSUFBUztJQUNuQyxPQUFPLGtCQUFrQixDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUMzQyxDQUFDO0FB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