PaymentData.fromJson constructor

PaymentData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PaymentData.fromJson(Map<String, dynamic> json) {
  return PaymentData(
    merchantId: json['merchantId'] as String,
    merchantTransactionId: json['merchantTransactionId'] as String,
    instrumentResponse: InstrumentResponse.fromJson(
        json['instrumentResponse'] as Map<String, dynamic>),
  );
}