WooSignalApp.fromJson constructor
WooSignalApp.fromJson(
- Map<String, dynamic> json
)
Implementation
WooSignalApp.fromJson(Map<String, dynamic> json) {
appName = json['app_name'];
appLogo = json['app_logo'];
appTermslink = json['app_termslink'];
appPrivacylink = json['app_privacylink'];
appDebug = json['app_debug'];
appStatus = json['app_status'];
currencyMeta = json['currency_meta'] != null
? new CurrencyMeta.fromJson(json['currency_meta'])
: null;
bannerImages = json['banner_images'].cast<String>();
stripeLiveMode = json['stripe_live_mode'];
stripeAccount = json['stripe_account'];
wpLoginEnabled = json['wp_login_enabled'];
wpLoginBaseUrl = json['wp_login_base_url'];
wpLoginForgotPasswordUrl = json['wp_login_forgot_password_url'];
wpLoginWpApiPath = json['wp_login_wp_api_path'];
productPricesIncludeTax = json['product_prices_include_tax'];
disableShipping = json['disable_shipping'];
theme = json['theme'];
locale = json['locale'];
this.paypalLocale = json['paypal_locale'] ?? "en-GB";
this.paypalEmail = json['paypal_email'] ?? "";
this.stripeEnabled = (json['stripe_enabled'] ?? 0) == 1 ? true : false;
this.codEnabled = (json['cod_enabled'] ?? 0) == 1 ? true : false;
this.paypalEnabled = (json['paypal_enabled'] ?? 0) == 1 ? true : false;
this.paypalLiveMode =
(json['paypal_live_mode'] ?? 0) == 1 ? true : false;
this.stripeCountryCode = json['stripe_country_code'] ?? "GB";
}