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

Serialization v. 2.0 (type safe + graceful error handling) #417

Conversation

bardram
Copy link
Contributor

@bardram bardram commented Sep 22, 2024

2.0.0

  • type safe annotation in class factor method, like this; FromJsonFactory().fromJson<A>(json)
  • graceful handling of errors when a non-known JSON type is encountered by allowing for a "notAvailable" parameter to the fromJson factory method, like this; FromJsonFactory().fromJson<B>(json, notAvailable: B(-1))
  • refactor of universal unique IDs (UUIDs) to using the Uuid().v1 construct
  • extending unit test coverage (incl., e.g. exceptions)
  • improvement to examples in the example.dart file and documentation in the API doc and README

Fixes #414

@bardram bardram merged commit 5a09a3a into main Sep 22, 2024
1 check passed
@bardram bardram deleted the 414-carp-serializablefeature-allow-specifying-how-to-handle-serialization-errors-due-to-unregistered-class-type branch September 22, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant