ReceiptMessageOut.fromJson constructor

ReceiptMessageOut.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory ReceiptMessageOut.fromJson(Map<String, dynamic> data) {
  Map<String, int> uint8Arr = data['data'];
  return ReceiptMessageOut(
      sender: addHexPrefix(data['sender']),
      recipient: addHexPrefix(data['recipient']),
      amount: parseBigInt(data['amount']),
      nonce: data['nonce'],
      digest: data['digest'],
      data: Uint8List.fromList(uint8Arr.values.toList()));
}