Skip to content

Commit

Permalink
30f090f8d8af30b90b73654e807af4714f1294b0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 16, 2023
1 parent 552e883 commit ab6d705
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neurostore_sdk/models/base_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def to_dict(self):
# override the default output from pydantic by calling `to_dict()` of versions
if self.versions:
_dict['versions'] = self.versions.to_dict()
# 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

# set to None if name (nullable) is None
# and __fields_set__ contains the field
if self.name is None and "name" in self.__fields_set__:
Expand Down
5 changes: 5 additions & 0 deletions neurostore_sdk/models/base_study_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def to_dict(self):
# override the default output from pydantic by calling `to_dict()` of versions
if self.versions:
_dict['versions'] = self.versions.to_dict()
# 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

# set to None if name (nullable) is None
# and __fields_set__ contains the field
if self.name is None and "name" in self.__fields_set__:
Expand Down

0 comments on commit ab6d705

Please sign in to comment.