/* 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 { OIDCClaimsRequestFromJSON, OIDCClaimsRequestToJSON, } from './OIDCClaimsRequest';
/**
 * @export
 */
export const OAuthRefreshTokenInformationScopesEnum = {
    openid: 'openid',
    email: 'email',
    profile: 'profile',
    ga4gh_passport_v1: 'ga4gh_passport_v1',
    view: 'view',
    download: 'download',
    modify: 'modify',
    authorize: 'authorize',
    offline_access: 'offline_access'
};
/**
 * Check if a given object implements the OAuthRefreshTokenInformation interface.
 */
export function instanceOfOAuthRefreshTokenInformation(value) {
    return true;
}
export function OAuthRefreshTokenInformationFromJSON(json) {
    return OAuthRefreshTokenInformationFromJSONTyped(json, false);
}
export function OAuthRefreshTokenInformationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'tokenId': json['tokenId'] == null ? undefined : json['tokenId'],
        'clientId': json['clientId'] == null ? undefined : json['clientId'],
        'principalId': json['principalId'] == null ? undefined : json['principalId'],
        'name': json['name'] == null ? undefined : json['name'],
        'scopes': json['scopes'] == null ? undefined : json['scopes'],
        'claims': json['claims'] == null ? undefined : OIDCClaimsRequestFromJSON(json['claims']),
        'authorizedOn': json['authorizedOn'] == null ? undefined : json['authorizedOn'],
        'lastUsed': json['lastUsed'] == null ? undefined : json['lastUsed'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'etag': json['etag'] == null ? undefined : json['etag'],
    };
}
export function OAuthRefreshTokenInformationToJSON(json) {
    return OAuthRefreshTokenInformationToJSONTyped(json, false);
}
export function OAuthRefreshTokenInformationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'tokenId': value['tokenId'],
        'clientId': value['clientId'],
        'principalId': value['principalId'],
        'name': value['name'],
        'scopes': value['scopes'],
        'claims': OIDCClaimsRequestToJSON(value['claims']),
        'authorizedOn': value['authorizedOn'],
        'lastUsed': value['lastUsed'],
        'modifiedOn': value['modifiedOn'],
        'etag': value['etag'],
    };
}
//# sourceMappingURL=OAuthRefreshTokenInformation.js.map