toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (billingAddress != null) 'billingAddress': billingAddress!,
  if (cardBin != null) 'cardBin': cardBin!,
  if (cardLastFour != null) 'cardLastFour': cardLastFour!,
  if (currencyCode != null) 'currencyCode': currencyCode!,
  if (gatewayInfo != null) 'gatewayInfo': gatewayInfo!,
  if (items != null) 'items': items!,
  if (merchants != null) 'merchants': merchants!,
  if (paymentMethod != null) 'paymentMethod': paymentMethod!,
  if (shippingAddress != null) 'shippingAddress': shippingAddress!,
  if (shippingValue != null) 'shippingValue': shippingValue!,
  if (transactionId != null) 'transactionId': transactionId!,
  if (user != null) 'user': user!,
  if (value != null) 'value': value!,
};