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

        if not isinstance(obj, dict):
            return ApiErrorResponse.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 ApiErrorResponse) in the input: " + str(obj))

        _obj = ApiErrorResponse.parse_obj({
            "code": obj.get("code"),
            "error": obj.get("error"),
            "request_id": obj.get("requestId"),
            "error_labels": obj.get("errorLabels")
        })
        return _obj
Create an instance of ApiErrorResponse from a dict
lightly/openapi_generated/swagger_client/models/api_error_response.py