/* 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 AdminUsersUpdateRequest interface.
 */
export function instanceOfAdminUsersUpdateRequest(value) {
    return true;
}
export function AdminUsersUpdateRequestFromJSON(json) {
    return AdminUsersUpdateRequestFromJSONTyped(json, false);
}
export function AdminUsersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        name: json['name'] == null ? undefined : json['name'],
        familyName: json['family_name'] == null ? undefined : json['family_name'],
        givenName: json['given_name'] == null ? undefined : json['given_name'],
        email: json['email'] == null ? undefined : json['email'],
        attributes: json['attributes'] == null ? undefined : json['attributes'],
        enabled: json['enabled'] == null ? undefined : json['enabled'],
    };
}
export function AdminUsersUpdateRequestToJSON(json) {
    return AdminUsersUpdateRequestToJSONTyped(json, false);
}
export function AdminUsersUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        name: value['name'],
        family_name: value['familyName'],
        given_name: value['givenName'],
        email: value['email'],
        attributes: value['attributes'],
        enabled: value['enabled'],
    };
}
