DatumSyncMetadata constructor

const DatumSyncMetadata({
  1. required String userId,
  2. DateTime? lastSyncTime,
  3. DateTime? lastSuccessfulSyncTime,
  4. String? dataHash,
  5. String? deviceId,
  6. Map<String, DateTime>? devices,
  7. Map<String, dynamic>? customMetadata,
  8. Map<String, DatumEntitySyncDetails>? entityCounts,
  9. SyncStatus syncStatus = SyncStatus.neverSynced,
  10. int syncVersion = 1,
  11. DateTime? serverTimestamp,
  12. int conflictCount = 0,
  13. String? errorMessage,
  14. int retryCount = 0,
  15. int? syncDuration,
})

Creates sync metadata.

Implementation

const DatumSyncMetadata({
  required this.userId,
  this.lastSyncTime,
  this.lastSuccessfulSyncTime,
  this.dataHash,
  this.deviceId,
  this.devices,
  this.customMetadata,
  this.entityCounts,
  this.syncStatus = SyncStatus.neverSynced,
  this.syncVersion = 1,
  this.serverTimestamp,
  this.conflictCount = 0,
  this.errorMessage,
  this.retryCount = 0,
  this.syncDuration,
});