def from_dict(cls, obj: dict) -> InternalDebugLatency:
        """Create an instance of InternalDebugLatency from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return InternalDebugLatency.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in InternalDebugLatency) in the input: " + str(obj))

        _obj = InternalDebugLatency.parse_obj({
            "express": obj.get("express"),
            "mongodb": InternalDebugLatencyMongodb.from_dict(obj.get("mongodb")) if obj.get("mongodb") is not None else None,
            "redis_cache": InternalDebugLatencyMongodb.from_dict(obj.get("redisCache")) if obj.get("redisCache") is not None else None,
            "redis_worker": InternalDebugLatencyMongodb.from_dict(obj.get("redisWorker")) if obj.get("redisWorker") is not None else None
        })
        return _obj
Create an instance of InternalDebugLatency from a dict
lightly/openapi_generated/swagger_client/models/internal_debug_latency.py