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

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

        _obj = DatasourceRawSamplesMetadataDataRow.parse_obj({
            "file_name": obj.get("fileName"),
            "read_url": obj.get("readUrl")
        })
        return _obj
Create an instance of DatasourceRawSamplesMetadataDataRow from a dict
lightly/openapi_generated/swagger_client/models/datasource_raw_samples_metadata_data_row.py