DatumSyncMetadata class

Metadata describing the synchronization state for a specific user.

Annotations
  • @immutable

Constructors

DatumSyncMetadata({required String userId, DateTime? lastSyncTime, String? dataHash, String? deviceId, Map<String, dynamic>? customMetadata, Map<String, DatumEntitySyncDetails>? entityCounts})
Creates sync metadata.
const
DatumSyncMetadata.fromMap(Map<String, dynamic> json)
Creates SyncMetadata from JSON.
factory

Properties

customMetadata Map<String, dynamic>?
Custom metadata fields.
final
dataHash String?
An optional global hash of all data for high-level integrity checking.
final
deviceId String?
Optional device identifier.
final
entityCounts Map<String, DatumEntitySyncDetails>?
A map of counts for different entity types, allowing tracking of multiple "tables" or data collections.
final
hashCode int
The hash code for this object.
no setterinherited
lastSyncTime DateTime?
Timestamp of last synchronization.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
userId String
User ID for this metadata.
final

Methods

copyWith({DateTime? lastSyncTime, String? dataHash, String? deviceId, Map<String, dynamic>? customMetadata, Map<String, DatumEntitySyncDetails>? entityCounts}) DatumSyncMetadata
Creates a copy with modified fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts to a map.
toString() String
A string representation of this object.
inherited

Operators

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