cv 1.1.3 cv: ^1.1.3 copied to clipboard
Content Values map helpers. Define objects that can be converted to/from maps.
1.1.3 #
- Add
basicTypeToInt
,basicTypeToBool
,basicTypeToNum
andbasicTypeToDouble
inutils/value_utils.dart
- Add
cvAnyToJsonObject
andcvAnyToJsonArray
tojson_utils.dart
1.1.1+1 #
- add
jsonPrettyEncode
, toJsonPretty utility and extension on Map and List in cv_json
1.1.0+4 #
- add
keyPartsToString
andkeyPartsFromString
- add helper
CvModel.valueAtPath(path)
to get a model value at a given path. - Fixe clone issue with subclasses dispatch.
1.0.0+1 #
- Make it
1.0.0
- requires dart
3.4.0
- add default
CvMapModel
builder - Fix basic list item safe conversion
0.2.20+1 #
- Add
Map.deepClone
,List.deepClone
andObject.anyDeepClone
.
0.2.19+1 #
- add
CvTreePath
field tree path helper. - add
basicTypeCast, basicTypeCastType
utils inutils/value_utils.dart
. - round double read as int instead of truncate.
0.2.18+1 #
- add
cvAddConstructors()
andcvTypeAddBuilder()
- add
anyAs
on Object to safely convert an object to any type - add
asModel
on Map to cast a map to a model - add
asModelList
on List to cast a list to a model list - add
clone
toCvModel
to clone a model
0.2.17+2 #
- add
cvType()
extensions - add
cvNewModel()
,cvTypeNewModel()
,cvNewModelList()
,cvTypeNewModelList()
helper - add
fieldAtPath()
helper onCvModel
- add
getKeyPathValue()
helper onList
andMap
0.2.16+2 #
- add
columns
argument inCvModel.copyFrom()
- add
matchingColumns()
,columns
helper onCvFields
0.2.15 #
- add
CvFields
type asList<CvField<Object?>>
.
0.2.14 #
- add
CvModelEmpty
to be used as empty model
0.2.13 #
- add
CvField.encoded
static function to encode a field content duringtoMap()
/fromMap()
- add
cvModelsAreEquals
helpers with optional columns selection to compare 2 models
0.2.12+1 #
- export
CvColumn
- fix fill option for Model like for Map
0.2.11 #
- Dart 3 support
0.2.10 #
- fix sdk 2.19 analyzer crash
0.2.9+3 #
- Supports strict-casts
- requires sdk 2.18
0.2.8+1 #
- lazy initialize model list object in cvList.
0.2.7 #
- add support for map of CvModel (CvModelMapField)
0.2.6 #
- add jsonToMap and jsonToMapList json String helpers
0.2.5 #
- Requires dart 2.15
0.2.4+1 #
- feat add json helpers
0.2.3+1 #
- Allow nullable for
CvField.withValue
, value being always set, even for null. - Fix
fillField
for genericList
andMap
0.2.2 #
- Add
CvField.isNotNull
,CvField.valueOrNull
(getter and setter) andCvField.valueOrThrow
(getter and setter)
0.2.1+1 #
- Add cv() as extension on List
0.2.0 #
- Fail when child/children builder are missing
0.1.3 #
- Initial version.