BestSellersProductClusterView.fromJson constructor

BestSellersProductClusterView.fromJson(
  1. Map json_
)

Implementation

BestSellersProductClusterView.fromJson(core.Map json_)
  : this(
      brand: json_['brand'] as core.String?,
      brandInventoryStatus: json_['brandInventoryStatus'] as core.String?,
      categoryL1: json_['categoryL1'] as core.String?,
      categoryL2: json_['categoryL2'] as core.String?,
      categoryL3: json_['categoryL3'] as core.String?,
      categoryL4: json_['categoryL4'] as core.String?,
      categoryL5: json_['categoryL5'] as core.String?,
      inventoryStatus: json_['inventoryStatus'] as core.String?,
      previousRank: json_['previousRank'] as core.String?,
      previousRelativeDemand: json_['previousRelativeDemand'] as core.String?,
      rank: json_['rank'] as core.String?,
      relativeDemand: json_['relativeDemand'] as core.String?,
      relativeDemandChange: json_['relativeDemandChange'] as core.String?,
      reportCategoryId: json_['reportCategoryId'] as core.String?,
      reportCountryCode: json_['reportCountryCode'] as core.String?,
      reportDate:
          json_.containsKey('reportDate')
              ? Date.fromJson(
                json_['reportDate'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      reportGranularity: json_['reportGranularity'] as core.String?,
      title: json_['title'] as core.String?,
      variantGtins:
          (json_['variantGtins'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
    );