https://github.com/ristocloud-group/app-lib-typed-json-getters
A Dart library providing type-safe getters for JSON maps with robust error handling.
https://github.com/ristocloud-group/app-lib-typed-json-getters
dart extentions json-parsing type-safety
Last synced: about 2 months ago
JSON representation
A Dart library providing type-safe getters for JSON maps with robust error handling.
- Host: GitHub
- URL: https://github.com/ristocloud-group/app-lib-typed-json-getters
- Owner: ristocloud-group
- License: mit
- Created: 2024-11-20T08:31:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-10T17:18:09.000Z (4 months ago)
- Last Synced: 2025-03-25T11:11:35.333Z (2 months ago)
- Topics: dart, extentions, json-parsing, type-safety
- Language: Dart
- Homepage: https://pub.dev/packages/typed_json_getters
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Typed JSON Getters
[](https://pub.dev/packages/typed_json_getters)
[](https://github.com/ristocloud-group/app-lib-typed-json-getters/actions/workflows/dart.yml)
[](https://ristocloud-group.github.io/app-lib-typed-json-getters/)
[](https://opensource.org/licenses/MIT)A Dart library providing type-safe getters for JSON maps (`Map`) with robust error handling and support for nested keys using dot notation.
## Features
- **Type-Safe Access**: Retrieve values with explicit types.
- **Default Values**: Provide default values when keys are missing.
- **Error Handling**: Throws `FormatException` when type conversion fails.
- **Nested Key Support**: Access nested JSON properties using dot notation.## Installation
Add `typed_json_getters` to your `pubspec.yaml`:
## Examples
Check out various [Examples](https://github.com/ristocloud-group/app-lib-typed-json-getters/blob/main/example/main.dart) to see how you can use these widgets in your Flutter projects.
## Contributing
We welcome contributions! Please see our [Contributing guide](https://github.com/ristocloud-group/app-lib-typed-json-getters/blob/main/.github/CONTRIBUTING.md) for more information.
## License
This project is licensed under the MIT License - see the [License](https://github.com/ristocloud-group/app-lib-typed-json-getters/blob/main/LICENSE) file for details.