/* 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 UserEvaluationPermissions interface.
 */
export function instanceOfUserEvaluationPermissions(value) {
    return true;
}
export function UserEvaluationPermissionsFromJSON(json) {
    return UserEvaluationPermissionsFromJSONTyped(json, false);
}
export function UserEvaluationPermissionsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'canChangePermissions': json['canChangePermissions'] == null ? undefined : json['canChangePermissions'],
        'canView': json['canView'] == null ? undefined : json['canView'],
        'canPublicRead': json['canPublicRead'] == null ? undefined : json['canPublicRead'],
        'canEdit': json['canEdit'] == null ? undefined : json['canEdit'],
        'canDelete': json['canDelete'] == null ? undefined : json['canDelete'],
        'canParticipate': json['canParticipate'] == null ? undefined : json['canParticipate'],
        'canSubmit': json['canSubmit'] == null ? undefined : json['canSubmit'],
        'canViewPrivateSubmissionStatusAnnotations': json['canViewPrivateSubmissionStatusAnnotations'] == null ? undefined : json['canViewPrivateSubmissionStatusAnnotations'],
        'canEditSubmissionStatuses': json['canEditSubmissionStatuses'] == null ? undefined : json['canEditSubmissionStatuses'],
        'canDeleteSubmissions': json['canDeleteSubmissions'] == null ? undefined : json['canDeleteSubmissions'],
        'ownerPrincipalId': json['ownerPrincipalId'] == null ? undefined : json['ownerPrincipalId'],
    };
}
export function UserEvaluationPermissionsToJSON(json) {
    return UserEvaluationPermissionsToJSONTyped(json, false);
}
export function UserEvaluationPermissionsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'canChangePermissions': value['canChangePermissions'],
        'canView': value['canView'],
        'canPublicRead': value['canPublicRead'],
        'canEdit': value['canEdit'],
        'canDelete': value['canDelete'],
        'canParticipate': value['canParticipate'],
        'canSubmit': value['canSubmit'],
        'canViewPrivateSubmissionStatusAnnotations': value['canViewPrivateSubmissionStatusAnnotations'],
        'canEditSubmissionStatuses': value['canEditSubmissionStatuses'],
        'canDeleteSubmissions': value['canDeleteSubmissions'],
        'ownerPrincipalId': value['ownerPrincipalId'],
    };
}
//# sourceMappingURL=UserEvaluationPermissions.js.map