/* 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.
 */
/**
 * Check if a given object implements the TenantSettings interface.
 */
export function instanceOfTenantSettings(value) {
    return true;
}
export function TenantSettingsFromJSON(json) {
    return TenantSettingsFromJSONTyped(json, false);
}
export function TenantSettingsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        accountManagement: json['accountManagement'] == null ? undefined : json['accountManagement'],
        totalTransferSizeMib: json['total_transfer_size_mib'] == null ? undefined : json['total_transfer_size_mib'],
        maxDownloadSizeMonthMib: json['max_download_size_month_mib'] == null ? undefined : json['max_download_size_month_mib'],
        vanityUrl: json['vanity_url'] == null ? undefined : json['vanity_url'],
    };
}
export function TenantSettingsToJSON(json) {
    return TenantSettingsToJSONTyped(json, false);
}
export function TenantSettingsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        accountManagement: value['accountManagement'],
        total_transfer_size_mib: value['totalTransferSizeMib'],
        max_download_size_month_mib: value['maxDownloadSizeMonthMib'],
        vanity_url: value['vanityUrl'],
    };
}
