"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.PriceSchemeInputArgsToJSON = exports.PriceSchemeInputArgsFromJSONTyped = exports.PriceSchemeInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
const PriceInputArgs1_1 = require("./PriceInputArgs1");
function PriceSchemeInputArgsFromJSON(json) {
    return PriceSchemeInputArgsFromJSONTyped(json, false);
}
exports.PriceSchemeInputArgsFromJSON = PriceSchemeInputArgsFromJSON;
function PriceSchemeInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'schemeType': json['scheme_type'],
        'batchSize': !(0, runtime_1.exists)(json, 'batch_size') ? undefined : json['batch_size'],
        'prices': !(0, runtime_1.exists)(json, 'prices') ? undefined : (json['prices'].map(PriceInputArgs1_1.PriceInputArgs1FromJSON)),
        'timeUnitName': !(0, runtime_1.exists)(json, 'time_unit_name') ? undefined : json['time_unit_name'],
        'unitName': !(0, runtime_1.exists)(json, 'unit_name') ? undefined : json['unit_name'],
        'priceList': !(0, runtime_1.exists)(json, 'price_list') ? undefined : json['price_list'],
        'postMinimumChargePercentageChange': !(0, runtime_1.exists)(json, 'post_minimum_charge_percentage_change') ? undefined : json['post_minimum_charge_percentage_change'],
    };
}
exports.PriceSchemeInputArgsFromJSONTyped = PriceSchemeInputArgsFromJSONTyped;
function PriceSchemeInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'scheme_type': value.schemeType,
        'batch_size': value.batchSize,
        'prices': value.prices === undefined ? undefined : (value.prices.map(PriceInputArgs1_1.PriceInputArgs1ToJSON)),
        'time_unit_name': value.timeUnitName,
        'unit_name': value.unitName,
        'price_list': value.priceList,
        'post_minimum_charge_percentage_change': value.postMinimumChargePercentageChange,
    };
}
exports.PriceSchemeInputArgsToJSON = PriceSchemeInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpY2VTY2hlbWVJbnB1dEFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvUHJpY2VTY2hlbWVJbnB1dEFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBQy9DLHVEQUsyQjtBQW9EM0IsU0FBZ0IsNEJBQTRCLENBQUMsSUFBUztJQUNsRCxPQUFPLGlDQUFpQyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUMxRCxDQUFDO0FBRkQsb0VBRUM7QUFFRCxTQUFnQixpQ0FBaUMsQ0FBQyxJQUFTLEVBQUUsbUJBQTRCO0lBQ3JGLElBQUksQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLEVBQUU7UUFDekMsT0FBTyxJQUFJLENBQUM7S0FDZjtJQUNELE9BQU87UUFFSCxZQUFZLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQztRQUNqQyxXQUFXLEVBQUUsQ0FBQyxJQUFBLGdCQUFNLEVBQUMsSUFBSSxFQUFFLFlBQVksQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUM7UUFDekUsUUFBUSxFQUFFLENBQUMsSUFBQSxnQkFBTSxFQUFDLElBQUksRUFBRSxRQUFRLENBQUMsQ0FBQyxDQUFD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