Skip to content

ristocloud-group/app-lib-typed-json-getters

Repository files navigation

Typed JSON Getters

pub package Build Status Coverage Status License

A Dart library providing type-safe getters for JSON maps (Map<String, dynamic>) 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 to see how you can use these widgets in your Flutter projects.

Contributing

We welcome contributions! Please see our Contributing guide for more information.

License

This project is licensed under the MIT License - see the License file for details.