direction = isset($attributes['direction']) ? SyncDirection::from($attributes['direction']) : SyncDirection::BIDIRECTIONAL; } }