toMap method

Map<String, dynamic> toMap()

Serializes the order for the INITIATE request.

Implementation

Map<String, dynamic> toMap() => {
  'amount': amount,
  'currency': currency,
  'name': name,
  'category': category,
  'channel': channel,
  if (reference != null) 'reference': reference,
  if (items != null) 'items': items!.map((e) => e.toMap()).toList(),
};