getDisputeByTradeId method

Dispute? getDisputeByTradeId(
  1. String tradeId
)

Implementation

Dispute? getDisputeByTradeId(String tradeId) {
  debugPrint("Attempting to retrieve dispute for Trade ID: $tradeId");

  if (_tradeIdToDisputeMap.containsKey(tradeId)) {
    debugPrint("Dispute found for Trade ID: $tradeId");
    return _tradeIdToDisputeMap[tradeId];
  } else {
    debugPrint("No dispute found for Trade ID: $tradeId");
    //debugPrintTradeIdToDisputeMap(); // Print the entire map for debugging
    return null;
  }
}