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