/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * 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 AccessRecord interface.
 */
export function instanceOfAccessRecord(value) {
    return true;
}
export function AccessRecordFromJSON(json) {
    return AccessRecordFromJSONTyped(json, false);
}
export function AccessRecordFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'method': json['method'] == null ? undefined : json['method'],
        'requestURL': json['requestURL'] == null ? undefined : json['requestURL'],
        'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
        'host': json['host'] == null ? undefined : json['host'],
        'origin': json['origin'] == null ? undefined : json['origin'],
        'xForwardedFor': json['xForwardedFor'] == null ? undefined : json['xForwardedFor'],
        'via': json['via'] == null ? undefined : json['via'],
        'threadId': json['threadId'] == null ? undefined : json['threadId'],
        'elapseMS': json['elapseMS'] == null ? undefined : json['elapseMS'],
        'success': json['success'] == null ? undefined : json['success'],
        'stack': json['stack'] == null ? undefined : json['stack'],
        'instance': json['instance'] == null ? undefined : json['instance'],
        'date': json['date'] == null ? undefined : json['date'],
        'vmId': json['vmId'] == null ? undefined : json['vmId'],
        'returnObjectId': json['returnObjectId'] == null ? undefined : json['returnObjectId'],
        'queryString': json['queryString'] == null ? undefined : json['queryString'],
        'responseStatus': json['responseStatus'] == null ? undefined : json['responseStatus'],
        'oauthClientId': json['oauthClientId'] == null ? undefined : json['oauthClientId'],
        'basicAuthUsername': json['basicAuthUsername'] == null ? undefined : json['basicAuthUsername'],
        'authenticationMethod': json['authenticationMethod'] == null ? undefined : json['authenticationMethod'],
    };
}
export function AccessRecordToJSON(json) {
    return AccessRecordToJSONTyped(json, false);
}
export function AccessRecordToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sessionId': value['sessionId'],
        'timestamp': value['timestamp'],
        'userId': value['userId'],
        'method': value['method'],
        'requestURL': value['requestURL'],
        'userAgent': value['userAgent'],
        'host': value['host'],
        'origin': value['origin'],
        'xForwardedFor': value['xForwardedFor'],
        'via': value['via'],
        'threadId': value['threadId'],
        'elapseMS': value['elapseMS'],
        'success': value['success'],
        'stack': value['stack'],
        'instance': value['instance'],
        'date': value['date'],
        'vmId': value['vmId'],
        'returnObjectId': value['returnObjectId'],
        'queryString': value['queryString'],
        'responseStatus': value['responseStatus'],
        'oauthClientId': value['oauthClientId'],
        'basicAuthUsername': value['basicAuthUsername'],
        'authenticationMethod': value['authenticationMethod'],
    };
}
//# sourceMappingURL=AccessRecord.js.map