/* 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 { ActionRequiredCountFromJSON, ActionRequiredCountToJSON, } from './ActionRequiredCount';
/**
 * @export
 */
export const ActionRequiredResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_download_ActionRequiredResponse: 'org.sagebionetworks.repo.model.download.ActionRequiredResponse'
};
/**
 * Check if a given object implements the ActionRequiredResponse interface.
 */
export function instanceOfActionRequiredResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ActionRequiredResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ActionRequiredResponseFromJSON(json) {
    return ActionRequiredResponseFromJSONTyped(json, false);
}
export function ActionRequiredResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'page': json['page'] == null ? undefined : (json['page'].map(ActionRequiredCountFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function ActionRequiredResponseToJSON(json) {
    return ActionRequiredResponseToJSONTyped(json, false);
}
export function ActionRequiredResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'page': value['page'] == null ? undefined : (value['page'].map(ActionRequiredCountToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=ActionRequiredResponse.js.map