Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality for automatically converting base models to json (Map<String, dynamic>) #76

Merged
merged 16 commits into from
Apr 1, 2024

Conversation

mario-bermonti
Copy link
Owner

Description

Adds a toJson() to Trial, Session, Device base models. It includes docstrings and unit tests for these methods. The methods are implemented by the json_serializable package (google).

Related Issue

Closes #70

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🐞 Bug fix (non-breaking change that fixes an issue)
  • 🔧 Maintenance (non-breaking change that improves code)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix
  • 🔐 Improvements to the CI workflow

Checklist

@mario-bermonti mario-bermonti merged commit e9a0d8d into main Apr 1, 2024
2 checks passed
@mario-bermonti mario-bermonti deleted the mario-bermonti/issue70 branch April 1, 2024 13:42
mario-bermonti added a commit that referenced this pull request Apr 1, 2024
Add functionality for automatically converting base models to json (Map<String, dynamic>)
mario-bermonti added a commit that referenced this pull request Apr 2, 2024
Add functionality for automatically converting base models to json (Map<String, dynamic>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add toJson and fromJson methods to base models
1 participant