External.fromJson constructor

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

Implementation

factory External.fromJson(Map<String, dynamic> json) => External(
      id: json["_id"],
      campaignLimit: json["campaign_limit"],
      category: json["category"],
      codesVaultLoader: json["codes_vault_loader"],
      color: json["color"],
      createFromPanel: json["create_from_panel"],
      dailyLimit: json["daily_limit"],
      description: json["description"],
      enabled: json["enabled"],
      fastImport: json["fast_import"],
      formula: json["formula"],
      globalCampaignLimit: json["global_campaign_limit"],
      globalDailyLimit: json["global_daily_limit"],
      moderationUpdate: json["moderation_update"],
      name: json["name"],
      slug: json["slug"],
      trackingAction: json["tracking_action"],
      useAsForm: json["use_as_form"],
      usePointType: json["use_point_type"],
      usePrizeForm: json["use_prize_form"],
      useRetailForm: json["use_retail_form"],
      useSignupForm: json["use_signup_form"],
      iconUrl: json["icon_url"],
      formId: json["form_id"],
      pointType: json["point_type"],
      pointTypeId: json["point_type_id"],
      createdAt: json["created_at"],
      updatedAt: json["updated_at"],
      filter: List<dynamic>.from(json["filter"].map((x) => x)),
    );