CvModel class abstract

Model to access the data (implies CvModelRead and CvModelCore)

Implementers
Available extensions

Constructors

CvModel.new()

Properties

cvPath → T

Available on T, provided by the CvTreePathModelReadExt extension

Path sub computation, only valid during a path<F> block.
no setter
fields CvFields
to override something like name, description
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear content
inherited
clone() → T

Available on T, provided by the CvModelCloneExt extension

Copy content
copyFrom(CvModelRead model, {List<String>? columns}) → void

Available on CvModelWrite, provided by the CvModelWriteExt extension

Copy content
cvTreeValueAtPath<V extends Object?>(CvTreePath treePath) CvModelTreeValue<T, V>

Available on T, provided by the CvTreePathModelReadExt extension

Model tree value helpers
field<T extends Object?>(String name) CvField<T>?
CvField access
inherited
fieldAtPath<T extends Object?>(List<Object> parts) CvField<T>?

Available on CvModelRead, provided by the CvModelReadExt extension

Deep CvField access
fillModel([CvFillOptions? options, List<String>? columns]) → void

Available on CvModel, provided by the CvModelUtilsExt extension

Fill all null in model including leaves
fromMap(Map map, {List<String>? columns}) → void
Map alias
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValueAtFieldPath(CvFieldPath path, Object? value) bool

Available on CvModelWrite, provided by the CvModelWriteExt extension

Set a value at a given path true if set
setValueAtPath(List<Object> parts, Object? value) bool

Available on CvModelWrite, provided by the CvModelWriteExt extension

Set a value at a given path, parts must not be empty true if set
toJson({List<String>? columns, bool includeMissingValue = false}) String

Available on CvModel, provided by the CvJsonModelExt extension

to json helper.
toJsonPretty({List<String>? columns, bool includeMissingValue = false}) String

Available on CvModel, provided by the CvJsonModelExt extension

to json helper.
toMap({List<String>? columns, bool includeMissingValue = false}) Model
Convert to map
inherited
toString() String
A string representation of this object.
inherited
valueAtFieldPath<T extends Object?>(CvFieldPath path) → T?

Available on CvModelRead, provided by the CvModelReadExt extension

Get a value at a given path fields value is returned. CvModel/List<CvModel> are converted to map/mapList.
valueAtPath<T extends Object?>(List<Object> parts) → T?

Available on CvModelRead, provided by the CvModelReadExt extension

Get a value at a given path fields value is returned. CvModel/List<CvModel> are converted to map/mapList.

Operators

operator ==(Object other) bool
The equality operator.
inherited