toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "amount": amount,
  "tag": tag!.number,
  if (invoiceId != null) "invoiceId": invoiceId,
  if (billId != null) "billId": billId,
  if (paymentId != null) "paymentId": paymentId,
  if (chargeMobileNumber != null) "chargeMobileNumber": chargeMobileNumber,
  if (topUpType != null) "topUpType": topUpType!.number,
  if (multiplexedAccounts != null) "multiplexedAccounts": multiplexedAccounts!.map((UIpgMultiplexedAccountParams e) => e.toMap()).toList(),
};