/* 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.
 */
import { OAuthClientFromJSON, OAuthClientToJSON, } from './OAuthClient';
/**
 * Check if a given object implements the OAuthClientAuthorizationHistory interface.
 */
export function instanceOfOAuthClientAuthorizationHistory(value) {
    return true;
}
export function OAuthClientAuthorizationHistoryFromJSON(json) {
    return OAuthClientAuthorizationHistoryFromJSONTyped(json, false);
}
export function OAuthClientAuthorizationHistoryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'client': json['client'] == null ? undefined : OAuthClientFromJSON(json['client']),
        'authorizedOn': json['authorizedOn'] == null ? undefined : json['authorizedOn'],
        'lastUsed': json['lastUsed'] == null ? undefined : json['lastUsed'],
    };
}
export function OAuthClientAuthorizationHistoryToJSON(json) {
    return OAuthClientAuthorizationHistoryToJSONTyped(json, false);
}
export function OAuthClientAuthorizationHistoryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'client': OAuthClientToJSON(value['client']),
        'authorizedOn': value['authorizedOn'],
        'lastUsed': value['lastUsed'],
    };
}
//# sourceMappingURL=OAuthClientAuthorizationHistory.js.map