typed_json_getters 0.0.2 copy "typed_json_getters: ^0.0.2" to clipboard
typed_json_getters: ^0.0.2 copied to clipboard

A Dart library providing type-safe getters for JSON maps with robust error handling.

Typed JSON Getters #

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:

dependencies:
  typed_json_getters: ^1.0.0
1
likes
150
points
45
downloads

Publisher

verified publisherristocloudgroup.com

Weekly Downloads

A Dart library providing type-safe getters for JSON maps with robust error handling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on typed_json_getters