PaymentResponse.fromMap constructor
Implementation
factory PaymentResponse.fromMap(Map<String, dynamic> map) {
return PaymentResponse(
success: map['success'] == 'true' || map['success'] == true,
responseCode: map['responseCode']?.toString(),
transactionReferenceNumber: map['transactionReferenceNumber']?.toString(),
message: map['message']?.toString(),
responseData: map,
);
}