/* 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 { ResourceAccessFromJSON, ResourceAccessToJSON, } from './ResourceAccess';
/**
 * Check if a given object implements the AccessControlList interface.
 */
export function instanceOfAccessControlList(value) {
    return true;
}
export function AccessControlListFromJSON(json) {
    return AccessControlListFromJSONTyped(json, false);
}
export function AccessControlListFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'creationDate': json['creationDate'] == null ? undefined : json['creationDate'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'resourceAccess': json['resourceAccess'] == null ? undefined : (new Set(json['resourceAccess'].map(ResourceAccessFromJSON))),
    };
}
export function AccessControlListToJSON(json) {
    return AccessControlListToJSONTyped(json, false);
}
export function AccessControlListToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdBy': value['createdBy'],
        'creationDate': value['creationDate'],
        'modifiedBy': value['modifiedBy'],
        'modifiedOn': value['modifiedOn'],
        'etag': value['etag'],
        'resourceAccess': value['resourceAccess'] == null ? undefined : (Array.from(value['resourceAccess']).map(ResourceAccessToJSON)),
    };
}
//# sourceMappingURL=AccessControlList.js.map