You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`
Copy file name to clipboardExpand all lines: pkgs/unified_analytics/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
- Get rid of `late` variables throughout implementation class, `AnalyticsImpl`
5
5
- Any error events (`Event.analyticsException`) encountered within package will be sent when invoking `Analytics.close`; replacing `ErrorHandler` functionality
6
6
- Exposing new method for `FakeAnalytics.sendPendingErrorEvents` to send error events on command
7
+
- Added `Event.fromJson` static method to generate instance of `Event` from JSON
0 commit comments