parsable 0.1.1 copy "parsable: ^0.1.1" to clipboard
parsable: ^0.1.1 copied to clipboard

Type-safe map parsing for Dart. Simplifies extracting values from Map<String, dynamic> with automatic type conversion and nested object support.

0.1.1 #

  • Bug Fix: Added exception handling for parser functions in get<T>() method
    • Parser exceptions are now caught and handled gracefully
    • Returns null and triggers error handler when parser throws an exception
    • Consistent behavior with getList<T>() which already had exception handling
  • Updated test suite to 40 tests (added parser exception handling test)

0.1.0 #

  • Initial release of Parsable
  • Type-safe map parsing with generic get<T>() method
  • List parsing with getList<T>() method - easily parse lists of objects
  • Automatic numeric type conversions (int ↔ double)
  • Support for nested objects with parser functions
  • Integration with Equatable for value equality
  • Configurable error handling via setOnParseError()
  • Ability to toggle numeric conversions with handleNumericConversions()
  • Full null safety support
  • Comprehensive documentation and examples
  • 39 unit tests with 100% passing rate
0
likes
160
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

Type-safe map parsing for Dart. Simplifies extracting values from Map<String, dynamic> with automatic type conversion and nested object support.

Repository (GitHub)
View/report issues

Topics

#parsing #json #map #type-safe #serialization

Documentation

API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on parsable