MFInitiatePaymentResponse.fromJson constructor

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

Implementation

MFInitiatePaymentResponse.fromJson(Map<String, dynamic> json) {
  if (json['PaymentMethods'] != null) {
    paymentMethods = <MFPaymentMethod>[];
    json['PaymentMethods'].forEach((v) {
      paymentMethods!.add(MFPaymentMethod.fromJson(v));
    });
  }
}