Payload.fromJson constructor
Payload.fromJson(
- Map<String, dynamic> json
)
Implementation
Payload.fromJson(Map<String, dynamic> json) {
androidApplicationId = json["android_application_id"];
iosApplicationId = json["ios_application_id"];
pg = json["pg"];
method = json["method"];
methods = json["methods"];
orderName = json["name"];
price = json["price"];
taxFree = json["tax_free"];
depositPrice = json["deposit_price"];
orderId = json["order_id"];
subscriptionId = json["subscription_id"];
authenticationId = json["authentication_id"];
userToken = json["userToken"];
// useOrderId = json["use_order_id"];
metadata = json["metadata"];
currency = json["currency"];
// accountExpireAt = json["account_expire_at"];
// showAgreeWindow = json["show_agree_window"];
extra = Extra.fromJson(json["extra"]);
widgetKey = json["key"];
widgetUseTerms = json["use_terms"];
widgetSandbox = json["sandbox"];
widgetOopay = Oopay.fromJson(json["oopay"]);
_widgetWalletId = json["wallet_id"];
_widgetData = json["widget_data"] != null ? WidgetData.fromJson(json["widget_data"]) : null;
_widgetSelectTerms = [];
if (json["select_terms"] != null) {
json["select_terms"].forEach((v) {
_widgetSelectTerms?.add(WidgetTerm.fromJson(v));
});
}
_widgetTermPassed = json["term_passed"];
_widgetCompleted = json["completed"];
}