jsonMap method
Implementation
Map<String, dynamic> jsonMap({bool asHex = false}) => {
"dr_pointer": (asHex) ? drPointer.hex : drPointer.bytes,
"pkh": pkh.address,
"reveal": (asHex)
? bytesToHex(
Uint8List.fromList(List<int>.from(reveal.map((x) => x))))
: List<int>.from(reveal.map((x) => x))
};