BackgroundTaskLanguageRefresh.fromJson constructor

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

Implementation

BackgroundTaskLanguageRefresh.fromJson(super.json)
  : excludeBarcodes = _getStringList(json, _jsonTagExcludeBarcodes),
    productType =
        ProductType.fromOffTag(json[_jsonTagProductType] as String?) ??
        // for legacy reason (not refreshed products = no product type)
        ProductType.food,
    super.fromJson();