"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.CompanyToJSON = exports.CompanyFromJSONTyped = exports.CompanyFromJSON = void 0;
const runtime_1 = require("../runtime");
function CompanyFromJSON(json) {
    return CompanyFromJSONTyped(json, false);
}
exports.CompanyFromJSON = CompanyFromJSON;
function CompanyFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'isActive': !(0, runtime_1.exists)(json, 'is_active') ? undefined : json['is_active'],
        'isDefault': !(0, runtime_1.exists)(json, 'is_default') ? undefined : json['is_default'],
        'companyCode': !(0, runtime_1.exists)(json, 'company_code') ? undefined : json['company_code'],
        'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
        'companyName': !(0, runtime_1.exists)(json, 'company_name') ? undefined : json['company_name'],
    };
}
exports.CompanyFromJSONTyped = CompanyFromJSONTyped;
function CompanyToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'is_active': value.isActive,
        'is_default': value.isDefault,
        'company_code': value.companyCode,
        'id': value.id,
        'company_name': value.companyName,
    };
}
exports.CompanyToJSON = CompanyToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tcGFueS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9Db21wYW55LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQ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