SyncLog class

Modelo de dados para logs de sincronização

Representa um registro de operação que precisa ser sincronizada com o servidor. Contém todas as informações necessárias para rastrear o estado da sincronização e permitir retry em caso de falha.

Constructors

SyncLog.new({required String syncId, required String entityType, required String entityId, required SyncOperation operation, required String dataJson, required bool isFileToUpload, required bool isSynced, required int retryCount, String? lastError, required DateTime createdAt, DateTime? lastAttemptAt, DateTime? syncedAt})
const

Properties

createdAt DateTime
final
dataJson String
final
entityId String
final
entityType String
final
hashCode int
The hash code for this object.
no setteroverride
isFileToUpload bool
final
isSynced bool
final
lastAttemptAt DateTime?
final
lastError String?
final
operation SyncOperation
final
retryCount int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncedAt DateTime?
final
syncId String
final

Methods

copyWith({String? syncId, String? entityType, String? entityId, SyncOperation? operation, String? dataJson, bool? isFileToUpload, bool? isSynced, int? retryCount, String? lastError, DateTime? createdAt, DateTime? lastAttemptAt, DateTime? syncedAt}) SyncLog
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.
override

Operators

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