Data.fromJson constructor
Implementation
factory Data.fromJson(Map<String, dynamic> json) => Data(
configurations: json["configurations"] == null ? [] : List<PrivacyPolicy>.from(json["configurations"]!.map((x) => PrivacyPolicy.fromJson(x))),
notificationUnreadCount: json["notification_unread_count"],
isSubscribed: json["is_subscribed"],
paymentSettings: json["payment_settings"] == null ? [] : List<PaymentSetting>.from(json["payment_settings"]!.map((x) => PaymentSetting.fromJson(x))),
helplineNumber: json["helpline_number"],
inquiryEmail: json["inquiry_email"],
aboutUS: json["about_us"] == null ? null : AboutUS.fromJson(json["about_us"]),
privacyPolicy: json["privacy_policy"] == null ? null : PrivacyPolicy.fromJson(json["privacy_policy"]),
termConditions: json["term_conditions"] == null ? null : PrivacyPolicy.fromJson(json["term_conditions"]),
languageOption: json["language_option"] == null ? [] : List<LanguageOption>.from(json["language_option"]!.map((x) => LanguageOption.fromJson(x))),
appDownload: json["app_download"] == null ? null : AppDownload.fromJson(json["app_download"]),
isAdvancedPaymentAllowed: json["is_advanced_payment_allowed"],
enableUserWallet: json["enable_user_wallet"],
generalSettings: json["general_settings"] == null ? null : GeneralSettings.fromJson(json["general_settings"]),
);