ReceiptTransfer.fromJson constructor

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

Implementation

factory ReceiptTransfer.fromJson(Map<String, dynamic> data) {
  return ReceiptTransfer(
      from: addHexPrefix(data['from']),
      to: addHexPrefix(data['to']),
      amount: parseBigInt(data['amount']),
      assetId: addHexPrefix(data['assetId']));
}