Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 25 days 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 (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-25T15:55:46.000Z (about 1 month ago)
- Last Synced: 2024-11-25T16:02:31.447Z (about 1 month ago)
- Topics: dart, extentions, json-parsing, type-safety
- Language: Dart
- Homepage: https://pub.dev/packages/typed_json_getters
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
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
[![pub package](https://img.shields.io/pub/v/typed_json_getters.svg)](https://pub.dev/packages/typed_json_getters)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ristocloud-group/app-lib-typed-json-getters/dart.yml)](https://github.com/ristocloud-group/app-lib-typed-json-getters/actions/workflows/dart.yml)
[![Coverage Status](https://github.com/ristocloud-group/app-lib-typed-json-getters/raw/gh-pages/coverage-badge.svg)](https://ristocloud-group.github.io/app-lib-typed-json-getters/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](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.