Converts the transaction details to a JSON representation.
Map<String, dynamic> toJson() => { 'orderId': orderId, 'grossAmount': grossAmount, }..removeWhere((key, value) => value == null);