toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
'id': id,
'actionId': actionId,
'amount': amount,
'approved': approved,
'status': status,
'responseCode': responseCode,
'type': type!.name.toLowerCase(),
'token': token,
'reference': reference,
'description': description,
'customer': customer.toMap(),
'currency': currency,
'processedOn': processedOn,
};
}