toJson method
Converts the ValidateDirectChargeRequest instance to a JSON object.
This method is useful for sending the request as JSON to an API endpoint.
Implementation
Map<String, dynamic> toJson() {
return {
"reference": reference,
"mobile": mobile,
"payment_method": paymentMethod
};
}