Options.fromJson constructor

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

Implementation

factory Options.fromJson(Map<String, dynamic> json) => Options(
      submissionMethod: json["submission_method"] == null
          ? null
          : json["submission_method"],
      submissionData: json["submission_data"] == null
          ? null
          : CardOptionsSubmissionData.fromJson(json["submission_data"]),
      submissionUrl:
          json["submission_url"] == null ? null : json["submission_url"],
      emiList: json["emi_list"] == null
          ? null
          : List<EmiList>.from(
              json["emi_list"].map((x) => EmiList.fromJson(x))),
    );