omnimodel 1.1.6
omnimodel: ^1.1.6 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
Changelog #
1.1.6 #
- Added the
removemethod to delete the OmniModel keys
1.1.5 #
- Changed the default value of
OmniModelPreferences.enforceLowerCaseKeysto false
1.1.4 #
- Fixed the exposition of
JsonTypeandSimilarityBackendenums
1.1.3 #
- Added the
tokenType()method that returns theJsonTypeof a token of the OmniModel
1.1.2 #
- Added the
clone()method - Solved a problem that returned an empty instance when using
OmniModel.fromDynamic()and passing an omnimodel instance.
1.1.1 #
- Added the automatic conversion to json, so that
jsonEncode()works correctly when encoding OmniModels
1.1.0 #
❗Breaking changes #
- Adjusted function names to better reflect their functionality:
OmniModel.identity()>OmniModel.empty()
- Added the in place
OmniModel.edit()method - Added indent parameter to
OmniModel.toRawJson() - Adjusted hint printing style
1.0.10 #
- Fixed static analysis and pub points
- Adjusted dart SDK version
1.0.9 #
- Improved documentation
OmniModel.fromMap()now accepts anyMapand automatically converts it by usingtoString()on keysOmniModel.similar()allows to extract the key that is most similar to the provided oneOmniModelPreferences.similarityBackendcan be used to change the similarity algorithm used
1.0.8 #
- Changed the similarity algorithm for keys from
levenshteinto a customsimilarityConvolution
1.0.7 #
- OmniModelPreferences
enforceLowerCaseKeysfix
1.0.6 #
- OmniModelPreferences
enforceLowerCaseKeys
1.0.5 #
- Added project lints to enforce style
- Exposed extension methdods
levenstheinon String anddeepUpdateon Map - Get the entries of an OmniModel directly using
entries
1.0.4 #
- Fixed a problem in which in certain situations, calling
tokenAsModelwould throw an exception.
1.0.3 #
- Fixed a problem in which in certain situations, calling
tokenAsModelwould throw an exception.
1.0.2 #
- Examples.
1.0.1 #
- Tests.
1.0.0 #
- Initial version.