/* 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 { ProjectStorageLocationUsageFromJSON, ProjectStorageLocationUsageToJSON, } from './ProjectStorageLocationUsage';
/**
 * Check if a given object implements the ProjectStorageUsage interface.
 */
export function instanceOfProjectStorageUsage(value) {
    return true;
}
export function ProjectStorageUsageFromJSON(json) {
    return ProjectStorageUsageFromJSONTyped(json, false);
}
export function ProjectStorageUsageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'projectId': json['projectId'] == null ? undefined : json['projectId'],
        'locations': json['locations'] == null ? undefined : (json['locations'].map(ProjectStorageLocationUsageFromJSON)),
    };
}
export function ProjectStorageUsageToJSON(json) {
    return ProjectStorageUsageToJSONTyped(json, false);
}
export function ProjectStorageUsageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'projectId': value['projectId'],
        'locations': value['locations'] == null ? undefined : (value['locations'].map(ProjectStorageLocationUsageToJSON)),
    };
}
//# sourceMappingURL=ProjectStorageUsage.js.map