/* 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 { EntityHeaderFromJSON, EntityHeaderToJSON, } from './EntityHeader';
/**
 * Check if a given object implements the EntityChildrenResponse interface.
 */
export function instanceOfEntityChildrenResponse(value) {
    return true;
}
export function EntityChildrenResponseFromJSON(json) {
    return EntityChildrenResponseFromJSONTyped(json, false);
}
export function EntityChildrenResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'page': json['page'] == null ? undefined : (json['page'].map(EntityHeaderFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
        'totalChildCount': json['totalChildCount'] == null ? undefined : json['totalChildCount'],
        'sumFileSizesBytes': json['sumFileSizesBytes'] == null ? undefined : json['sumFileSizesBytes'],
    };
}
export function EntityChildrenResponseToJSON(json) {
    return EntityChildrenResponseToJSONTyped(json, false);
}
export function EntityChildrenResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'page': value['page'] == null ? undefined : (value['page'].map(EntityHeaderToJSON)),
        'nextPageToken': value['nextPageToken'],
        'totalChildCount': value['totalChildCount'],
        'sumFileSizesBytes': value['sumFileSizesBytes'],
    };
}
//# sourceMappingURL=EntityChildrenResponse.js.map