toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  if (direction != null) 'direction': direction,
  if (amount != null) 'amount': amount,
  if (currency != null) 'currency': currency,
  if (currencyType != null) 'currencyType': currencyType,
  if (amountInDefaultCurrency != null)
    'amountInDefaultCurrency': amountInDefaultCurrency,
  if (defaultCurrencyCode != null) 'defaultCurrencyCode': defaultCurrencyCode,
  if (paymentDetails != null) 'paymentDetails': paymentDetails,
  if (paymentTxnId != null) 'paymentTxnId': paymentTxnId,
  if (type != null) 'type': type,
  if (cryptoParams != null) 'cryptoParams': cryptoParams,
};