-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serializing/deserializing methods for
Event
instances (#251)
* `.fromJson` and `.toJson` added + move utils func * Use nullable static method to parse string json * Update event.dart * Fix test * Tests for encoding/decoding json * Store intersection in local var * Remove exception thrown for nullable return * Use conditionals to check for any type errors * Test case added to check for invalid eventData * Update CHANGELOG.md * Refactor `Event.fromJson` to use pattern matching * Use package:collection for comparing eventData * Use range for collection version * `fromLabel` static method renaming * Fix test by refactoring unrelated DashTool static method * Remove `when` clause and check inside if statement * `_deepCollectionEquality` to global scope + nit fix * Remove collection dep + schema in dartdoc + nit fixes * Add'l context to `Event.fromJson` static method * Store intersection in local variable * Refactor `DashTool.fromLabel`
- Loading branch information
1 parent
5e26782
commit 13388ea
Showing
6 changed files
with
129 additions
and
34 deletions.
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