/* 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.
 */
/**
 * @export
 */
export const SubscriptionObjectTypeEnum = {
    FORUM: 'FORUM',
    THREAD: 'THREAD',
    DATA_ACCESS_SUBMISSION: 'DATA_ACCESS_SUBMISSION',
    DATA_ACCESS_SUBMISSION_STATUS: 'DATA_ACCESS_SUBMISSION_STATUS'
};
/**
 * Check if a given object implements the Subscription interface.
 */
export function instanceOfSubscription(value) {
    return true;
}
export function SubscriptionFromJSON(json) {
    return SubscriptionFromJSONTyped(json, false);
}
export function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
        'subscriberId': json['subscriberId'] == null ? undefined : json['subscriberId'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
    };
}
export function SubscriptionToJSON(json) {
    return SubscriptionToJSONTyped(json, false);
}
export function SubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'subscriptionId': value['subscriptionId'],
        'subscriberId': value['subscriberId'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'createdOn': value['createdOn'],
    };
}
//# sourceMappingURL=Subscription.js.map