BestSellersBrandView.fromJson constructor

BestSellersBrandView.fromJson(
  1. Map json_
)

Implementation

BestSellersBrandView.fromJson(core.Map json_)
  : this(
      brand: json_['brand'] 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?,
    );