/* 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 UserStatsResponse interface.
 */
export function instanceOfUserStatsResponse(value) {
    if (!('tenantActiveTransfers' in value) || value['tenantActiveTransfers'] === undefined)
        return false;
    if (!('tenantTotalSize' in value) || value['tenantTotalSize'] === undefined)
        return false;
    if (!('userActiveTransfers' in value) || value['userActiveTransfers'] === undefined)
        return false;
    if (!('userFulfilledSends' in value) || value['userFulfilledSends'] === undefined)
        return false;
    if (!('userFulfilledInvites' in value) || value['userFulfilledInvites'] === undefined)
        return false;
    if (!('userTransfersMonth' in value) || value['userTransfersMonth'] === undefined)
        return false;
    if (!('userTotalSize' in value) || value['userTotalSize'] === undefined)
        return false;
    return true;
}
export function UserStatsResponseFromJSON(json) {
    return UserStatsResponseFromJSONTyped(json, false);
}
export function UserStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        tenantActiveTransfers: json['tenant_active_transfers'],
        tenantTotalSize: json['tenant_total_size'],
        userActiveTransfers: json['user_active_transfers'],
        userFulfilledSends: json['user_fulfilled_sends'],
        userFulfilledInvites: json['user_fulfilled_invites'],
        userTransfersMonth: json['user_transfers_month'],
        userTotalSize: json['user_total_size'],
        userDownloadSizeMonth: json['user_download_size_month'] == null ? undefined : json['user_download_size_month'],
        tenantDownloadSizeMonth: json['tenant_download_size_month'] == null ? undefined : json['tenant_download_size_month'],
    };
}
export function UserStatsResponseToJSON(json) {
    return UserStatsResponseToJSONTyped(json, false);
}
export function UserStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        tenant_active_transfers: value['tenantActiveTransfers'],
        tenant_total_size: value['tenantTotalSize'],
        user_active_transfers: value['userActiveTransfers'],
        user_fulfilled_sends: value['userFulfilledSends'],
        user_fulfilled_invites: value['userFulfilledInvites'],
        user_transfers_month: value['userTransfersMonth'],
        user_total_size: value['userTotalSize'],
        user_download_size_month: value['userDownloadSizeMonth'],
        tenant_download_size_month: value['tenantDownloadSizeMonth'],
    };
}
