Activity.fromJson constructor
Activity.fromJson(
- Map json_
Implementation
Activity.fromJson(core.Map json_)
: this(
activityTime: json_.containsKey('activityTime')
? json_['activityTime'] as core.String
: null,
activityType: json_.containsKey('activityType')
? json_['activityType'] as core.String
: null,
appview: json_.containsKey('appview')
? ScreenviewData.fromJson(
json_['appview'] as core.Map<core.String, core.dynamic>)
: null,
campaign: json_.containsKey('campaign')
? json_['campaign'] as core.String
: null,
channelGrouping: json_.containsKey('channelGrouping')
? json_['channelGrouping'] as core.String
: null,
customDimension: json_.containsKey('customDimension')
? (json_['customDimension'] as core.List)
.map((value) => CustomDimension.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
ecommerce: json_.containsKey('ecommerce')
? EcommerceData.fromJson(
json_['ecommerce'] as core.Map<core.String, core.dynamic>)
: null,
event: json_.containsKey('event')
? EventData.fromJson(
json_['event'] as core.Map<core.String, core.dynamic>)
: null,
goals: json_.containsKey('goals')
? GoalSetData.fromJson(
json_['goals'] as core.Map<core.String, core.dynamic>)
: null,
hostname: json_.containsKey('hostname')
? json_['hostname'] as core.String
: null,
keyword: json_.containsKey('keyword')
? json_['keyword'] as core.String
: null,
landingPagePath: json_.containsKey('landingPagePath')
? json_['landingPagePath'] as core.String
: null,
medium: json_.containsKey('medium')
? json_['medium'] as core.String
: null,
pageview: json_.containsKey('pageview')
? PageviewData.fromJson(
json_['pageview'] as core.Map<core.String, core.dynamic>)
: null,
source: json_.containsKey('source')
? json_['source'] as core.String
: null,
);