"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.UpdateCustomerArgsToJSON = exports.UpdateCustomerArgsFromJSONTyped = exports.UpdateCustomerArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
const ContactInfoInputArgs_1 = require("./ContactInfoInputArgs");
const CustomerMeasurementMappingInputArgs_1 = require("./CustomerMeasurementMappingInputArgs");
function UpdateCustomerArgsFromJSON(json) {
    return UpdateCustomerArgsFromJSONTyped(json, false);
}
exports.UpdateCustomerArgsFromJSON = UpdateCustomerArgsFromJSON;
function UpdateCustomerArgsFromJSONTyped(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'],
        'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
        'contactInfo': !(0, runtime_1.exists)(json, 'contact_info') ? undefined : (0, ContactInfoInputArgs_1.ContactInfoInputArgsFromJSON)(json['contact_info']),
        'createdAt': !(0, runtime_1.exists)(json, 'created_at') ? undefined : (new Date(json['created_at'])),
        'measurementMappings': !(0, runtime_1.exists)(json, 'measurement_mappings') ? undefined : (json['measurement_mappings'].map(CustomerMeasurementMappingInputArgs_1.CustomerMeasurementMappingInputArgsFromJSON)),
        'displayName': !(0, runtime_1.exists)(json, 'display_name') ? undefined : json['display_name'],
    };
}
exports.UpdateCustomerArgsFromJSONTyped = UpdateCustomerArgsFromJSONTyped;
function UpdateCustomerArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'vendor_id': value.vendorId,
        'name': value.name,
        'tags': value.tags,
        'contact_info': (0, ContactInfoInputArgs_1.ContactInfoInputArgsToJSON)(value.contactInfo),
        'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
        'measurement_mappings': value.measurementMappings === undefined ? undefined : (value.measurementMappings.map(CustomerMeasurementMappingInputArgs_1.CustomerMeasurementMappingInputArgsToJSON)),
        'display_name': value.displayName,
    };
}
exports.UpdateCustomerArgsToJSON = UpdateCustomerArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXBkYXRlQ3VzdG9tZXJBcmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL1VwZGF0ZUN1c3RvbWVyQXJncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7QUFFSCx3Q0FBK0M7QUFDL0MsaUVBS2dDO0FBQ2hDLCtGQUsrQztBQW9EL0MsU0FBZ0IsMEJBQTBCLENBQUMsSUFBUztJQUNoRCxPQUFPLCtCQUErQixDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUN4RCxDQUFDO0FBRkQsZ0VBRUM7QUFFRCxTQUFnQiwrQkFBK0IsQ0FBQyxJQUFTLEVBQUUsbUJBQTRCO0lBQ25GLElBQUksQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLEVBQUU7UUFDekMsT0FBTyxJQUFJLENBQUM7S0FDZjtJQUNELE9BQU87UUFFSCxVQUFVLEVBQUUsQ0FBQyxJQUFBLGdCQUFNLEVBQUMsSUFBSSxFQUFFLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElB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