/* 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 { UsageResponseFromJSON, UsageResponseToJSON, } from './UsageResponse.js';
/**
 * Check if a given object implements the TenantUsageResponse interface.
 */
export function instanceOfTenantUsageResponse(value) {
    if (!('usage' in value) || value['usage'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    return true;
}
export function TenantUsageResponseFromJSON(json) {
    return TenantUsageResponseFromJSONTyped(json, false);
}
export function TenantUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        usage: json['usage'].map(UsageResponseFromJSON),
        attributes: json['attributes'],
    };
}
export function TenantUsageResponseToJSON(json) {
    return TenantUsageResponseToJSONTyped(json, false);
}
export function TenantUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        usage: value['usage'].map(UsageResponseToJSON),
        attributes: value['attributes'],
    };
}
