/* 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 AdminUsersResponse interface.
 */
export function instanceOfAdminUsersResponse(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('tenantId' in value) || value['tenantId'] === undefined)
        return false;
    if (!('email' in value) || value['email'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('familyName' in value) || value['familyName'] === undefined)
        return false;
    if (!('givenName' in value) || value['givenName'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    if (!('enabled' in value) || value['enabled'] === undefined)
        return false;
    return true;
}
export function AdminUsersResponseFromJSON(json) {
    return AdminUsersResponseFromJSONTyped(json, false);
}
export function AdminUsersResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        id: json['id'],
        tenantId: json['tenant_id'],
        email: json['email'],
        name: json['name'],
        familyName: json['family_name'],
        givenName: json['given_name'],
        attributes: json['attributes'],
        enabled: json['enabled'],
        bandwidthUsage: json['bandwidth_usage'] == null ? undefined : json['bandwidth_usage'],
        activeSessions: json['active_sessions'] == null ? undefined : json['active_sessions'],
        groups: json['groups'] == null ? undefined : json['groups'],
    };
}
export function AdminUsersResponseToJSON(json) {
    return AdminUsersResponseToJSONTyped(json, false);
}
export function AdminUsersResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        id: value['id'],
        tenant_id: value['tenantId'],
        email: value['email'],
        name: value['name'],
        family_name: value['familyName'],
        given_name: value['givenName'],
        attributes: value['attributes'],
        enabled: value['enabled'],
        bandwidth_usage: value['bandwidthUsage'],
        active_sessions: value['activeSessions'],
        groups: value['groups'],
    };
}
