parseStringToU8a function
Implementation
Uint8List parseStringToU8a(String str) {
final s1 = str.replaceAll('[', '');
final s2 = s1.replaceAll(']', '');
final newList = s2.split(',');
return Uint8List.fromList(newList.map((e) => int.parse(e)).toList());
}