BusinessAppConfigModel.fromJson constructor

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

Implementation

factory BusinessAppConfigModel.fromJson(Map<String, dynamic> json) =>
    BusinessAppConfigModel(
      businessConfig: json,
      businessId: json["businessId"] ?? 0,
      type: json["type"] ?? "",
      slug: json["slug"] ?? "",
      domain: json["domain"] ?? "",
      businessName: json["businessName"] ?? "",
      businessLocation:
          BusinessLocation.fromJson(json["businessLocation"] ?? {}),
      businessDescription: json["businessDescription"] ?? "",
      currencySymbol: json["currencySymbol"] ?? "₹",
      currencyCode: json["currencyCode"] ?? "INR",
      logo: json["logo"] ?? "",
      version: json["version"] ?? "",
      authenticationType: json["authentication_type"] ?? "",
      appName: json["appName"] ?? "",
      theme: BusinessTheme.fromJson(json["theme"] ?? {}),
      order: BusinessOrder.fromJson(json["order"] ?? {}),
      delivery: BusinessDelivery.fromJson(json["delivery"] ?? {}),
      invoice: json["invoice"] ?? {},
      contactUs: BusinessContactUs.fromJson(json["contactUs"] ?? {}),
      product: BusinessProduct.fromJson(json["product"] ?? {}),
      activeTime: json["activeTime"] ?? {},
      androidPackageName: json["androidPackageName"] ?? "",
      iosBundleIdentifier: json["iosBundleIdentifier"] ?? "",
      enableAppCoin: json["enableAppCoin"] ?? false,
      appHomePage: json["appHomePage"] ?? {},
      activeTheme: json["activeTheme"] ?? 0,
      socialLink: json["social_link"] ?? {},
      googleAndroidFile: json["google_android_file"] ?? "",
      googleIosFile: json["google_ios_file"] ?? "",
      subscription: json["subscription"] ?? {},
      restaurant: json["restaurant"] ?? {},
      redeemCoin: RedeemCoin.fromJson(json["redeem_coin"] ?? {}),
      env: json["ENV"] ?? "",
      fcmServerKey: json["fcm_server_key"] ?? "",
      paymentKey: json["paymentKey"] ?? "",
      paymentType: json["paymentType"] ?? "",
    );