TopicTrends.fromJson constructor
TopicTrends.fromJson(
- Map json_
Implementation
TopicTrends.fromJson(core.Map json_)
: this(
customerCountryCode: json_.containsKey('customerCountryCode')
? json_['customerCountryCode'] as core.String
: null,
date: json_.containsKey('date')
? Date.fromJson(
json_['date'] as core.Map<core.String, core.dynamic>)
: null,
last120DaysSearchInterest:
json_.containsKey('last120DaysSearchInterest')
? (json_['last120DaysSearchInterest'] as core.num).toDouble()
: null,
last30DaysSearchInterest:
json_.containsKey('last30DaysSearchInterest')
? (json_['last30DaysSearchInterest'] as core.num).toDouble()
: null,
last7DaysSearchInterest: json_.containsKey('last7DaysSearchInterest')
? (json_['last7DaysSearchInterest'] as core.num).toDouble()
: null,
last90DaysSearchInterest:
json_.containsKey('last90DaysSearchInterest')
? (json_['last90DaysSearchInterest'] as core.num).toDouble()
: null,
next7DaysSearchInterest: json_.containsKey('next7DaysSearchInterest')
? (json_['next7DaysSearchInterest'] as core.num).toDouble()
: null,
searchInterest: json_.containsKey('searchInterest')
? (json_['searchInterest'] as core.num).toDouble()
: null,
topic:
json_.containsKey('topic') ? json_['topic'] as core.String : null,
);