/* 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 FileBasedMetadataTaskPropertiesConcreteTypeEnum = {
    org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties: 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties'
};
/**
 * @export
 */
export const FileBasedMetadataTaskPropertiesSuggestedAuthorizationModeEnum = {
    SESSION_OWNER: 'SESSION_OWNER',
    SOURCE_BENEFACTOR: 'SOURCE_BENEFACTOR'
};
/**
 * Check if a given object implements the FileBasedMetadataTaskProperties interface.
 */
export function instanceOfFileBasedMetadataTaskProperties(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(FileBasedMetadataTaskPropertiesConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function FileBasedMetadataTaskPropertiesFromJSON(json) {
    return FileBasedMetadataTaskPropertiesFromJSONTyped(json, false);
}
export function FileBasedMetadataTaskPropertiesFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'collaboratorPrincipalIds': json['collaboratorPrincipalIds'] == null ? undefined : json['collaboratorPrincipalIds'],
        'suggestedAuthorizationMode': json['suggestedAuthorizationMode'] == null ? undefined : json['suggestedAuthorizationMode'],
        'uploadFolderId': json['uploadFolderId'] == null ? undefined : json['uploadFolderId'],
        'fileViewId': json['fileViewId'] == null ? undefined : json['fileViewId'],
    };
}
export function FileBasedMetadataTaskPropertiesToJSON(json) {
    return FileBasedMetadataTaskPropertiesToJSONTyped(json, false);
}
export function FileBasedMetadataTaskPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'collaboratorPrincipalIds': value['collaboratorPrincipalIds'],
        'suggestedAuthorizationMode': value['suggestedAuthorizationMode'],
        'uploadFolderId': value['uploadFolderId'],
        'fileViewId': value['fileViewId'],
    };
}
//# sourceMappingURL=FileBasedMetadataTaskProperties.js.map