toJson method

Map<String, dynamic> toJson()

Converts the transaction details to a JSON representation.

Implementation

Map<String, dynamic> toJson() => {
      'orderId': orderId,
      'grossAmount': grossAmount,
    }..removeWhere((key, value) => value == null);