Revert "implement Hash.toJson() to allow encoding using JsonEncoder from dart:convert"

This reverts commit 6f38faa73c9af7944616f55e7b3a4fa8ca229d05.
replaced getRange() with sublist()