/* 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 AccessApprovalStateEnum = {
    APPROVED: 'APPROVED',
    REVOKED: 'REVOKED'
};
/**
 * Check if a given object implements the AccessApproval interface.
 */
export function instanceOfAccessApproval(value) {
    return true;
}
export function AccessApprovalFromJSON(json) {
    return AccessApprovalFromJSONTyped(json, false);
}
export function AccessApprovalFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'requirementId': json['requirementId'] == null ? undefined : json['requirementId'],
        'requirementVersion': json['requirementVersion'] == null ? undefined : json['requirementVersion'],
        'submitterId': json['submitterId'] == null ? undefined : json['submitterId'],
        'accessorId': json['accessorId'] == null ? undefined : json['accessorId'],
        'expiredOn': json['expiredOn'] == null ? undefined : json['expiredOn'],
        'state': json['state'] == null ? undefined : json['state'],
    };
}
export function AccessApprovalToJSON(json) {
    return AccessApprovalToJSONTyped(json, false);
}
export function AccessApprovalToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'createdBy': value['createdBy'],
        'modifiedBy': value['modifiedBy'],
        'requirementId': value['requirementId'],
        'requirementVersion': value['requirementVersion'],
        'submitterId': value['submitterId'],
        'accessorId': value['accessorId'],
        'expiredOn': value['expiredOn'],
        'state': value['state'],
    };
}
//# sourceMappingURL=AccessApproval.js.map