toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "txId": originalTxId,
    "uPoP": upopTx.asHex,
    "uPoPHash": uPoPHash.toHex,
    "pops": [
      for (final pop in pops) pop.toHex,
    ],
  };
}