NetCoreSyncTable class
The annotation class that needs to be assigned to table classes.
For all table classes that wants to be synchronized with the server-side, they need to be annotated with this class. If the default synchronization field names conflicted with an existing field name, it can be overriden by specifying different field name in the constructor arguments.
Please read the Client Side Data Annotation
in the netcoresync_moor
documentation for more details.
Constructors
- NetCoreSyncTable({String idFieldName = "id", String syncIdFieldName = "syncId", String knowledgeIdFieldName = "knowledgeId", String syncedFieldName = "synced", String deletedFieldName = "deleted"})
-
const
-
NetCoreSyncTable.fromJson(Map<
String, dynamic> json) -
factory
Properties
- deletedFieldName → String
-
The
deleted
synchronization field name, defaults to: "deleted".final - hashCode → int
-
The hash code for this object.
no setterinherited
- idFieldName → String
-
The
id
synchronization field name, defaults to: "id".final - knowledgeIdFieldName → String
-
The
knowledgeId
synchronization field name, defaults to: "knowledgeId".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syncedFieldName → String
-
The
synced
synchronization field name, defaults to: "synced".final - syncIdFieldName → String
-
The
syncId
synchronization field name, defaults to: "syncId".final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited