fromJson method
Implementation
BackgroundTask fromJson(Map<String, dynamic> map) => switch (this) {
crop => BackgroundTaskCrop.fromJson(map),
addPrice => BackgroundTaskAddPrice.fromJson(map),
addOtherPrice => BackgroundTaskAddOtherPrice.fromJson(map),
details => BackgroundTaskDetails.fromJson(map),
hungerGames => BackgroundTaskHungerGames.fromJson(map),
image => BackgroundTaskImage.fromJson(map),
refreshLater => BackgroundTaskRefreshLater.fromJson(map),
unselect => BackgroundTaskUnselect.fromJson(map),
offline => BackgroundTaskOffline.fromJson(map),
offlineBarcodes => BackgroundTaskTopBarcodes.fromJson(map),
offlineProducts => BackgroundTaskDownloadProducts.fromJson(map),
fullRefresh => BackgroundTaskFullRefresh.fromJson(map),
languageRefresh => BackgroundTaskLanguageRefresh.fromJson(map),
folksonomy => BackgroundTaskFolksonomy.fromJson(map),
};