PaymentOptions.fromJson constructor

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

Implementation

factory PaymentOptions.fromJson(Map<String, dynamic> json) => PaymentOptions(
      paymentUrl: json["payment_url"] == null ? null : json["payment_url"],
      cardOptions: json["card_options"] == null
          ? null
          : Options.fromJson(json["card_options"]),
      emiOptions: json["emi_options"] == null
          ? null
          : Options.fromJson(json["emi_options"]),
      netbankingOptions: json["netbanking_options"] == null
          ? null
          : NetbankingOptions.fromJson(json["netbanking_options"]),
      walletOptions: json["wallet_options"] == null
          ? null
          : WalletOptions.fromJson(json["wallet_options"]),
      upiOptions: json["upi_options"] == null
          ? null
          : UpiOptions.fromJson(json["upi_options"]),
    );