"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.CustomerPortalVendorToJSON = exports.CustomerPortalVendorFromJSONTyped = exports.CustomerPortalVendorFromJSON = void 0;
const runtime_1 = require("../runtime");
const ContactInfo_1 = require("./ContactInfo");
function CustomerPortalVendorFromJSON(json) {
    return CustomerPortalVendorFromJSONTyped(json, false);
}
exports.CustomerPortalVendorFromJSON = CustomerPortalVendorFromJSON;
function CustomerPortalVendorFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
        'contactInfo': !(0, runtime_1.exists)(json, 'contact_info') ? undefined : (0, ContactInfo_1.ContactInfoFromJSON)(json['contact_info']),
        'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
        'paymentGateway': !(0, runtime_1.exists)(json, 'payment_gateway') ? undefined : json['payment_gateway'],
        'displayName': !(0, runtime_1.exists)(json, 'display_name') ? undefined : json['display_name'],
    };
}
exports.CustomerPortalVendorFromJSONTyped = CustomerPortalVendorFromJSONTyped;
function CustomerPortalVendorToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'name': value.name,
        'contact_info': (0, ContactInfo_1.ContactInfoToJSON)(value.contactInfo),
        'currency': value.currency,
        'payment_gateway': value.paymentGateway,
        'display_name': value.displayName,
    };
}
exports.CustomerPortalVendorToJSON = CustomerPortalVendorToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxWZW5kb3IuanMiLCJzb3VyY2VSb290Ijo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