omnimodel 1.1.7 omnimodel: ^1.1.7 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.7 #
- Added the
remove
documentation
1.1.6 #
- Added the
remove
method to delete the OmniModel keys
1.1.5 #
- Changed the default value of
OmniModelPreferences.enforceLowerCaseKeys
to false
1.1.4 #
- Fixed the exposition of
JsonType
andSimilarityBackend
enums
1.1.3 #
- Added the
tokenType()
method that returns theJsonType
of 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 anyMap
and automatically converts it by usingtoString()
on keysOmniModel.similar()
allows to extract the key that is most similar to the provided oneOmniModelPreferences.similarityBackend
can be used to change the similarity algorithm used
1.0.8 #
- Changed the similarity algorithm for keys from
levenshtein
to a customsimilarityConvolution
1.0.7 #
- OmniModelPreferences
enforceLowerCaseKeys
fix
1.0.6 #
- OmniModelPreferences
enforceLowerCaseKeys
1.0.5 #
- Added project lints to enforce style
- Exposed extension methdods
levensthein
on String anddeepUpdate
on Map - Get the entries of an OmniModel directly using
entries
1.0.4 #
- Fixed a problem in which in certain situations, calling
tokenAsModel
would throw an exception.
1.0.3 #
- Fixed a problem in which in certain situations, calling
tokenAsModel
would throw an exception.
1.0.2 #
- Examples.
1.0.1 #
- Tests.
1.0.0 #
- Initial version.