PaymentResponse.fromMap constructor

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

Implementation

factory PaymentResponse.fromMap(Map<String, dynamic> map) {
  return PaymentResponse(
    success: map['success'] != null ? map['success'] as bool : null,
    message: map['message'] != null ? map['message'] as String : null,
    transactionId:
        map['transactionId'] != null ? map['transactionId'] as String : null,
  );
}