BestSellers.fromJson constructor
BestSellers.fromJson(
- Map json_
Implementation
BestSellers.fromJson(core.Map json_)
: this(
categoryId: json_.containsKey('categoryId')
? json_['categoryId'] as core.String
: null,
countryCode: json_.containsKey('countryCode')
? json_['countryCode'] as core.String
: null,
previousRank: json_.containsKey('previousRank')
? json_['previousRank'] as core.String
: null,
previousRelativeDemand: json_.containsKey('previousRelativeDemand')
? json_['previousRelativeDemand'] as core.String
: null,
rank: json_.containsKey('rank') ? json_['rank'] as core.String : null,
relativeDemand: json_.containsKey('relativeDemand')
? json_['relativeDemand'] as core.String
: null,
relativeDemandChange: json_.containsKey('relativeDemandChange')
? json_['relativeDemandChange'] as core.String
: null,
reportDate: json_.containsKey('reportDate')
? Date.fromJson(
json_['reportDate'] as core.Map<core.String, core.dynamic>)
: null,
reportGranularity: json_.containsKey('reportGranularity')
? json_['reportGranularity'] as core.String
: null,
);