toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'status': status,
    'description': description,
    'amount': amount,
    'total_amount': totalAmount,
    'apv': apv,
    'payment_status': paymentStatus,
    'datetime': datetime?.millisecondsSinceEpoch,
    'original_currency': originalCurrency!.name,
    'payout': payout?.map((x) => x).toList(),
    'tran_id': tranId,
    'firstname': firstname,
    'lastname': lastname,
    'phone': phone,
    'email': email,
    'payment_type': paymentType,
  };
}