/* 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 { AccessApprovalSearchSortFromJSON, AccessApprovalSearchSortToJSON, } from './AccessApprovalSearchSort';
/**
 * Check if a given object implements the AccessApprovalSearchRequest interface.
 */
export function instanceOfAccessApprovalSearchRequest(value) {
    if (!('accessorId' in value) || value['accessorId'] === undefined)
        return false;
    return true;
}
export function AccessApprovalSearchRequestFromJSON(json) {
    return AccessApprovalSearchRequestFromJSONTyped(json, false);
}
export function AccessApprovalSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'accessorId': json['accessorId'],
        'accessRequirementId': json['accessRequirementId'] == null ? undefined : json['accessRequirementId'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(AccessApprovalSearchSortFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function AccessApprovalSearchRequestToJSON(json) {
    return AccessApprovalSearchRequestToJSONTyped(json, false);
}
export function AccessApprovalSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'accessorId': value['accessorId'],
        'accessRequirementId': value['accessRequirementId'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(AccessApprovalSearchSortToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=AccessApprovalSearchRequest.js.map