Transaction.fromJson constructor

Transaction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Transaction.fromJson(Map<String, dynamic> json) {
  return Transaction(
    id: json['id'],
    type: json['type'],
    fromAccountIndex: json['fromAccountIndex'],
    toAccountIndex: json['toAccountIndex'],
    toEthereumAddress: json['toEthereumAddress'],
    toBjj: json['toBjj'],
    tokenId: json['tokenId'],
    amount: json['amount'],
    fee: json['fee'],
    nonce: json['nonce'],
    state: json['state'],
    signature: json['signature'],
    timestamp: json['timestamp'],
    batchNum: json['batchNum'],
    rqFromAccountIndex: json['rqFromAccountIndex'],
    rqToAccountIndex: json['rqToAccountIndex'],
    rqToEthereumAddress: json['rqToEthereumAddress'],
    rqToBJJ: json['rqToBJJ'],
    rqTokenId: json['rqTokenId'],
    rqAmount: json['rqAmount'],
    rqFee: json['rqFee'],
    rqNonce: json['rqNonce'],
    tokenSymbol: json['tokenSymbol'],
  );
}