Skip to content

Commit

Permalink
6fef67b7e251f865947ed46bf069d9b4ffaa068e
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 4, 2024
1 parent 5af1a91 commit f6b3701
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neurostore_sdk/models/analysis_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def to_dict(self):
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

# set to None if metadata (nullable) is None
# and __fields_set__ contains the field
if self.metadata is None and "metadata" in self.__fields_set__:
_dict['metadata'] = None

return _dict

@classmethod
Expand Down
5 changes: 5 additions & 0 deletions neurostore_sdk/models/analysis_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ def to_dict(self):
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

# set to None if metadata (nullable) is None
# and __fields_set__ contains the field
if self.metadata is None and "metadata" in self.__fields_set__:
_dict['metadata'] = None

return _dict

@classmethod
Expand Down
5 changes: 5 additions & 0 deletions neurostore_sdk/models/analysis_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def to_dict(self):
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

# set to None if metadata (nullable) is None
# and __fields_set__ contains the field
if self.metadata is None and "metadata" in self.__fields_set__:
_dict['metadata'] = None

return _dict

@classmethod
Expand Down

0 comments on commit f6b3701

Please sign in to comment.