PaymentCheckoutResponseModel.fromJson constructor

PaymentCheckoutResponseModel.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory PaymentCheckoutResponseModel.fromJson(Map<String, dynamic> map) {
  return PaymentCheckoutResponseModel(
    message: map['message'] != null ? map['message'] as String : null,
    otpCode: map['otpCode'] != null ? map['otpCode'] as String : null,
    externalTransactionId: map['externalTransactionId'] != null
        ? map['externalTransactionId'] as String
        : null,
  );
}