BackgroundTaskProgressing.fromJson constructor

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

Implementation

BackgroundTaskProgressing.fromJson(super.json)
  : work = json[_jsonTagWork] as String,
    totalSize = json[_jsonTagTotalSize] as int,
    productType =
        ProductType.fromOffTag(json[_jsonTagProductType] as String?) ??
        // for legacy reason (not refreshed products = no product type)
        ProductType.food,
    super.fromJson();