dynamic_value 3.0.0 dynamic_value: ^3.0.0 copied to clipboard
The easy way to work with JSON data, safe access to nested data in the Map and safe type conversion.
3.0.0 #
DynamicValue
are made comparable byvalue
, for example this can be used in tests.- Minimum Dart version raised to 3.1.0.
2.5.0 #
- Breaking change: Now in the
toMap<K, V>
method, the converted key is passed as the second parameter to thevalueBuilder
andvalueRawBuilder
callbacks.
2.0.2 #
- The
toBool
method now returns a null-safe type.
2.0.1 #
- The
toList<T>
method can now return a list ofMap
values that have been cast to the required type.
2.0.0 #
- Added the
toMap<K, V>
method to support typedMap
classes. - Types and parameters are now specified in builders.
2.0.0-nullsafety.4 #
- Improved
toList<T>
method to support differentIterable
classes.
2.0.0-nullsafety.3 #
- In the
to<T>
andtoList<T>
methods, thedefaultValue
argument type has been changed fromdynamic
toT?
/List<T>?
.
2.0.0-nullsafety.2 #
- Operator
[]
now returns typeDynamicValue
instead of typedynamic
.
2.0.0-nullsafety.1 #
- Migrate to null safety.
1.0.1+1 #
- Operator
[]
now returns typeDynamicValue
instead of typedynamic
.
1.0.1 #
- Fixed bug in
.toList()
method. - Added examples.
1.0.0+1 #
- Initial version