XRPTransaction.json constructor

XRPTransaction.json(
  1. Map<String, dynamic> json
)

Implementation

XRPTransaction.json(Map<String, dynamic> json)
    : account = json["account"],
      multiSigSigners = const [],
      flags = json["flags"],
      signingPubKey = json["signing_pub_key"],
      lastLedgerSequence = json["last_ledger_sequence"],
      sequence = json["sequence"],
      txnSignature = json["txn_signature"],
      fee = parseBigInt(json["fee"]),
      transactionType =
          XRPLTransactionType.fromValue(json["transaction_type"]),
      networkId = json["network_id"],
      ticketSequance = json["ticket_sequence"],
      sourceTag = json["source_tag"],
      accountTxId = json["account_txn_id"],
      memos =
          (json["memos"] as List?)?.map((e) => XRPLMemo.fromJson(e)).toList(),
      signers = (json["signers"] as List?)
          ?.map((e) => XRPLSigners.fromJson(e))
          .toList();