FincraPaymentInitiate.fromJson constructor

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

Implementation

factory FincraPaymentInitiate.fromJson(Map<String, dynamic> json) {
  return FincraPaymentInitiate(
    publicKey: json['publicKey'],
    amount: json['amount'],
    currency: json['currency'],
    customerFirstName: json['customerFirstName'],
    customerLastName: json['customerLastName'],
    customerEmail: json['customerEmail'],
    customerPhone: json['customerPhone'],
    feeBearer: json['feeBearer'],
    reference: json['reference'],
    paymentMethods: List<String>.from(json['paymentMethods']),
    defaultPaymentMethod: json['defaultPaymentMethod'],
  );
}