toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['app_name'] = appName;
  data['app_logo'] = appLogo;
  data['app_termslink'] = appTermsLink;
  data['app_privacylink'] = appPrivacyLink;
  data['app_debug'] = appDebug;
  data['wishlist_enabled'] = wishlistEnabled;
  data['coupon_enabled'] = couponEnabled;
  data['app_status'] = appStatus;
  if (currencyMeta != null) {
    data['currency_meta'] = currencyMeta!.toJson();
  }
  data['banner_images'] = bannerImages;
  data['stripe_live_mode'] = stripeLiveMode;
  data['stripe_account'] = stripeAccount;
  data['wp_login_enabled'] = wpLoginEnabled;
  data['wp_login_base_url'] = wpLoginBaseUrl;
  data['wp_login_forgot_password_url'] = wpLoginForgotPasswordUrl;
  data['wp_login_wp_api_path'] = wpLoginWpApiPath;
  data['product_prices_include_tax'] = productPricesIncludeTax;
  data['disable_shipping'] = disableShipping;
  data['theme'] = theme;
  data['locale'] = locale;
  data['paypal_locale'] = paypalLocale;
  data['paypal_email'] = paypalEmail;
  data['stripe_enabled'] = stripeEnabled;
  data['cod_enabled'] = codEnabled;
  data['paypal_enabled'] = paypalEnabled;
  data['stripe_country_code'] = stripeCountryCode;
  data['theme_font'] = themeFont;
  data['social_links'] = socialLinks;
  data['theme_colors'] = themeColors;
  if (firebaseOptionsIos != null) {
    data['firebase_config']['firebase_options_ios'] = firebaseOptionsIos;
  }
  if (firebaseOptionsAndroid != null) {
    data['firebase_config']['firebase_options_android'] =
        firebaseOptionsAndroid;
  }
  data['fcm_enabled'] = firebaseFcmIsEnabled;
  return data;
}