jsonMap method
Implementation
Map<String, dynamic> jsonMap({bool asHex = false}) {
return {
"dr_pointer": (asHex) ? drPointer.hex : drPointer.bytes,
"error_committers":
List<dynamic>.from(errorCommitters.map((x) => x.address)),
"out_of_consensus":
List<dynamic>.from(outOfConsensus.map((x) => x.address)),
"outputs":
List<dynamic>.from(outputs.map((x) => x.jsonMap(asHex: asHex))),
"tally": (asHex) ? bytesToHex(Uint8List.fromList(tally)) : tally.toList(),
};
}