"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.ApplyCouponInputArgsToJSON = exports.ApplyCouponInputArgsFromJSONTyped = exports.ApplyCouponInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function ApplyCouponInputArgsFromJSON(json) {
    return ApplyCouponInputArgsFromJSONTyped(json, false);
}
exports.ApplyCouponInputArgsFromJSON = ApplyCouponInputArgsFromJSON;
function ApplyCouponInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'vendorId': !(0, runtime_1.exists)(json, 'vendor_id') ? undefined : json['vendor_id'],
        'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
        'customerId': !(0, runtime_1.exists)(json, 'customer_id') ? undefined : json['customer_id'],
        'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
        'customerName': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
    };
}
exports.ApplyCouponInputArgsFromJSONTyped = ApplyCouponInputArgsFromJSONTyped;
function ApplyCouponInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'vendor_id': value.vendorId,
        'name': value.name,
        'customer_id': value.customerId,
        'code': value.code,
        'customer_name': value.customerName,
    };
}
exports.ApplyCouponInputArgsToJSON = ApplyCouponInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwbHlDb3Vwb25JbnB1dEFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvQXBwb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