-
Notifications
You must be signed in to change notification settings - Fork 29
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
Serializing/deserializing methods for Event
instances
#251
Merged
eliasyishak
merged 22 commits into
dart-lang:main
from
eliasyishak:250-helper-method-to-turn-json-into-an-event-instance
Mar 29, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
44f9bcc
`.fromJson` and `.toJson` added + move utils func
eliasyishak ce19f12
Use nullable static method to parse string json
eliasyishak 9a55df9
Update event.dart
eliasyishak 1846d97
Fix test
eliasyishak 65c353d
Merge remote-tracking branch 'upstream/main' into 250-helper-method-t…
eliasyishak 03dcdbe
Tests for encoding/decoding json
eliasyishak 7a7511e
Store intersection in local var
eliasyishak 9d2bd10
Remove exception thrown for nullable return
eliasyishak 886b253
Use conditionals to check for any type errors
eliasyishak 9df20b3
Test case added to check for invalid eventData
eliasyishak f16b37a
Update CHANGELOG.md
eliasyishak 9602053
Refactor `Event.fromJson` to use pattern matching
eliasyishak 2d58a3d
Use package:collection for comparing eventData
eliasyishak 760d9b7
Use range for collection version
eliasyishak 3977ae8
`fromLabel` static method renaming
eliasyishak d71b224
Fix test by refactoring unrelated DashTool static method
eliasyishak bd2fae1
Remove `when` clause and check inside if statement
eliasyishak 7fd9071
`_deepCollectionEquality` to global scope + nit fix
eliasyishak 8cacb0b
Remove collection dep + schema in dartdoc + nit fixes
eliasyishak 1a85335
Add'l context to `Event.fromJson` static method
eliasyishak b412b59
Store intersection in local variable
eliasyishak e1d45d5
Refactor `DashTool.fromLabel`
eliasyishak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of creating our own, can we use something from package:collection? like
DeepCollectionEquality
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, this commit has it updated to use
DeepCollectionEquality.equals
to compare instead@christopherfujino, i know we discussed trimming down dependencies for this package, do you think this is a valid reason to add another dep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following up on offline discussions with @christopherfujino, going to remove the dep on collection and use the same function for comparing two separate maps to reduce dependencies for this package