toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'syncId': syncId,
    'entityType': entityType,
    'entityId': entityId,
    'operation': operation.value,
    'dataJson': dataJson,
    'isFileToUpload': isFileToUpload,
    'isSynced': isSynced,
    'retryCount': retryCount,
    'lastError': lastError,
    'createdAt': createdAt.toIso8601String(),
    'lastAttemptAt': lastAttemptAt?.toIso8601String(),
    'syncedAt': syncedAt?.toIso8601String(),
  };
}