/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { TenantThemeConfigFromJSON, TenantThemeConfigToJSON, } from './TenantThemeConfig.js';
import { TenantStripeConfigFromJSON, TenantStripeConfigToJSON, } from './TenantStripeConfig.js';
import { TenantOneDriveConfigFromJSON, TenantOneDriveConfigToJSON, } from './TenantOneDriveConfig.js';
import { OIDCConfigFromJSON, OIDCConfigToJSON } from './OIDCConfig.js';
/**
 * Check if a given object implements the ConfigResponse interface.
 */
export function instanceOfConfigResponse(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('termsAndConditions' in value) || value['termsAndConditions'] === undefined)
        return false;
    return true;
}
export function ConfigResponseFromJSON(json) {
    return ConfigResponseFromJSONTyped(json, false);
}
export function ConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        id: json['id'],
        theme: json['theme'] == null ? undefined : TenantThemeConfigFromJSON(json['theme']),
        accountManagement: json['accountManagement'] == null ? undefined : json['accountManagement'],
        maxDownloadSizeMonthMib: json['max_download_size_month_mib'] == null ? undefined : json['max_download_size_month_mib'],
        stripe: json['stripe'] == null ? undefined : TenantStripeConfigFromJSON(json['stripe']),
        termsAndConditions: json['terms_and_conditions'],
        vanityUrl: json['vanity_url'] == null ? undefined : json['vanity_url'],
        oidc: json['oidc'] == null ? undefined : OIDCConfigFromJSON(json['oidc']),
        onedrive: json['onedrive'] == null ? undefined : TenantOneDriveConfigFromJSON(json['onedrive']),
    };
}
export function ConfigResponseToJSON(json) {
    return ConfigResponseToJSONTyped(json, false);
}
export function ConfigResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        id: value['id'],
        theme: TenantThemeConfigToJSON(value['theme']),
        accountManagement: value['accountManagement'],
        max_download_size_month_mib: value['maxDownloadSizeMonthMib'],
        stripe: TenantStripeConfigToJSON(value['stripe']),
        terms_and_conditions: value['termsAndConditions'],
        vanity_url: value['vanityUrl'],
        oidc: OIDCConfigToJSON(value['oidc']),
        onedrive: TenantOneDriveConfigToJSON(value['onedrive']),
    };
}
