PaymentResponse.fromMap constructor

PaymentResponse.fromMap(
  1. Map<String, dynamic> map
)

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,
  );
}