WalletOptions.fromJson constructor

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

Implementation

factory WalletOptions.fromJson(Map<String, dynamic> json) => WalletOptions(
      submissionMethod: json["submission_method"] == null
          ? null
          : json["submission_method"],
      choices: json["choices"] == null
          ? null
          : List<WalletOptionsChoice>.from(
              json["choices"].map((x) => WalletOptionsChoice.fromJson(x))),
      submissionData: json["submission_data"] == null
          ? null
          : NetbankingOptionsSubmissionData.fromJson(json["submission_data"]),
      submissionUrl:
          json["submission_url"] == null ? null : json["submission_url"],
    );