"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.TaxCodeToJSON = exports.TaxCodeFromJSONTyped = exports.TaxCodeFromJSON = void 0;
const runtime_1 = require("../runtime");
function TaxCodeFromJSON(json) {
    return TaxCodeFromJSONTyped(json, false);
}
exports.TaxCodeFromJSON = TaxCodeFromJSON;
function TaxCodeFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'entityUseCode': !(0, runtime_1.exists)(json, 'entity_use_code') ? undefined : json['entity_use_code'],
        'taxCodeTypeId': !(0, runtime_1.exists)(json, 'tax_code_type_id') ? undefined : json['tax_code_type_id'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
        'taxCode': !(0, runtime_1.exists)(json, 'tax_code') ? undefined : json['tax_code'],
    };
}
exports.TaxCodeFromJSONTyped = TaxCodeFromJSONTyped;
function TaxCodeToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'entity_use_code': value.entityUseCode,
        'tax_code_type_id': value.taxCodeTypeId,
        'description': value.description,
        'id': value.id,
        'tax_code': value.taxCode,
    };
}
exports.TaxCodeToJSON = TaxCodeToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGF4Q29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9UYXhDb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I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