factory SyncStatus.fromMap(Map<String, dynamic> map) => SyncStatus(map["current_index"], map["target_index"], map["stage"]);