TallyTransaction.fromJson constructor

  1. @override
TallyTransaction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

@override
factory TallyTransaction.fromJson(Map<String, dynamic> json) =>
    TallyTransaction(
      drPointer: Hash.fromString(json["dr_pointer"]),
      outputs: List<ValueTransferOutput>.from(
          json["outputs"].map((x) => ValueTransferOutput.fromJson(x))),
      outOfConsensus: List<PublicKeyHash>.from(
          json["out_of_consensus"].map((x) => PublicKeyHash.fromAddress(x))),
      errorCommitters: List<PublicKeyHash>.from(
          json["error_committers"].map((x) => PublicKeyHash.fromAddress(x))),
      tally: Uint8List.fromList(List<int>.from(json["tally"].map((x) => x))),
    );