Exit.fromTransaction constructor

Exit.fromTransaction(
  1. PoolTransaction transaction
)

Implementation

factory Exit.fromTransaction(PoolTransaction transaction) {
  //Token token = Token.fromJson(json['token']);
  //MerkleProof merkleProof = MerkleProof.fromJson(json['merkleProof']);
  return Exit(
    //batchNum: json['batchNum'],
    accountIndex: transaction.fromAccountIndex,
    //itemId: transaction.id,
    //merkleProof: merkleProof,
    balance: transaction.amount,
    //instantWithdraw: json['instantWithdraw'],
    //delayedWithdrawRequest: json['delayedWithdrawRequest'],
    //delayedWithdraw: json['delayedWithdraw'],
    token: transaction.token,
    //bjj: json['bjj'],
    //hezEthereumAddress: json['hezEthereumAddress']
  );
}