/* tslint:disable */
/* eslint-disable */
/**
 * Deepfence ThreatMapper
 * Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider,  container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
 *
 * The version of the OpenAPI document: v2.5.0
 * Contact: community@deepfence.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface ModelTopologyDeltaReq
 */
export interface ModelTopologyDeltaReq {
    /**
     * 
     * @type {boolean}
     * @memberof ModelTopologyDeltaReq
     */
    addition: boolean;
    /**
     * 
     * @type {number}
     * @memberof ModelTopologyDeltaReq
     */
    addition_timestamp: number;
    /**
     * 
     * @type {boolean}
     * @memberof ModelTopologyDeltaReq
     */
    deletion: boolean;
    /**
     * 
     * @type {number}
     * @memberof ModelTopologyDeltaReq
     */
    deletion_timestamp: number;
    /**
     * 
     * @type {Array<string>}
     * @memberof ModelTopologyDeltaReq
     */
    entity_types: Array<string> | null;
}

/**
 * Check if a given object implements the ModelTopologyDeltaReq interface.
 */
export function instanceOfModelTopologyDeltaReq(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "addition" in value;
    isInstance = isInstance && "addition_timestamp" in value;
    isInstance = isInstance && "deletion" in value;
    isInstance = isInstance && "deletion_timestamp" in value;
    isInstance = isInstance && "entity_types" in value;

    return isInstance;
}

export function ModelTopologyDeltaReqFromJSON(json: any): ModelTopologyDeltaReq {
    return ModelTopologyDeltaReqFromJSONTyped(json, false);
}

export function ModelTopologyDeltaReqFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelTopologyDeltaReq {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'addition': json['addition'],
        'addition_timestamp': json['addition_timestamp'],
        'deletion': json['deletion'],
        'deletion_timestamp': json['deletion_timestamp'],
        'entity_types': json['entity_types'],
    };
}

export function ModelTopologyDeltaReqToJSON(value?: ModelTopologyDeltaReq | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'addition': value.addition,
        'addition_timestamp': value.addition_timestamp,
        'deletion': value.deletion,
        'deletion_timestamp': value.deletion_timestamp,
        'entity_types': value.entity_types,
    };
}

