NetbankingOptions.fromJson constructor

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

Implementation

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