toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['Status'] = status;
data['ErrorMessage'] = errorMessage;
data['PaymentId'] = paymentId;
data['Token'] = token;
data['RecurringId'] = recurringId;
data['PaymentURL'] = paymentURL;
if (cardInfo != null) {
data['CardInfo'] = cardInfo!.toJson();
}
return data;
}