/* 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 GroupResponse interface.
 */
export function instanceOfGroupResponse(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('tenantId' in value) || value['tenantId'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('_default' in value) || value['_default'] === undefined)
        return false;
    if (!('created' in value) || value['created'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    if (!('priority' in value) || value['priority'] === undefined)
        return false;
    return true;
}
export function GroupResponseFromJSON(json) {
    return GroupResponseFromJSONTyped(json, false);
}
export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        id: json['id'],
        tenantId: json['tenant_id'],
        name: json['name'],
        _default: json['default'],
        created: new Date(json['created']),
        attributes: json['attributes'],
        priority: json['priority'],
        roles: json['roles'] == null ? undefined : json['roles'],
        enabledUsersCount: json['enabled_users_count'] == null ? undefined : json['enabled_users_count'],
    };
}
export function GroupResponseToJSON(json) {
    return GroupResponseToJSONTyped(json, false);
}
export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        id: value['id'],
        tenant_id: value['tenantId'],
        name: value['name'],
        default: value['_default'],
        created: value['created'].toISOString(),
        attributes: value['attributes'],
        priority: value['priority'],
        roles: value['roles'],
        enabled_users_count: value['enabledUsersCount'],
    };
}
