omnimodel 1.1.1 copy "omnimodel: ^1.1.1" to clipboard
omnimodel: ^1.1.1 copied to clipboard

Model complex data and access it in an easy and safe way. OmniModel wraps data structures and allows the developer to handle missing entries and fields

GitHub GitHub top language GitHub Workflow Status (branch) GitHub last commit (branch)

Model complex data and access it in an easy and safe way #

Features #

This package introduces a class that basically is a wrapper to any data that is representable as a Map<String, dynamic>.

The OmniModel allows to easily and safely access data inside the construct.

The package has been idealized for developing an easy and modular interface to communicate with any non relational, Json based database.

Usage #

The OmniModel simply wraps the data and allows for easy and safe access. When accessing keys, it is possible to define the behaviour in case of missing entry in the original data.

The package also includes some useful tools such a (suppressable) automatic logging behaviour suggesting the closest match in case of key mispell by the developer. The algorithm uses a very precise similarity convolution algorithm.

Steps #

  • Create the OmniModel with one of the various factories
  • Access entries in a controlled way
  • Access nested models in a modular way by recursively parsing models with OmniModel.tokenAsModel()

Advanced usages can be found in the /example folder.

3
likes
0
pub points
24%
popularity

Publisher

verified publishertratteo.it

Model complex data and access it in an easy and safe way. OmniModel wraps data structures and allows the developer to handle missing entries and fields

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

tint

More

Packages that depend on omnimodel