Profile.fromJson constructor
Profile.fromJson(
- Map json_
Implementation
Profile.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
botFilteringEnabled: json_.containsKey('botFilteringEnabled')
? json_['botFilteringEnabled'] as core.bool
: null,
childLink: json_.containsKey('childLink')
? ProfileChildLink.fromJson(
json_['childLink'] as core.Map<core.String, core.dynamic>)
: null,
created: json_.containsKey('created')
? core.DateTime.parse(json_['created'] as core.String)
: null,
currency: json_.containsKey('currency')
? json_['currency'] as core.String
: null,
defaultPage: json_.containsKey('defaultPage')
? json_['defaultPage'] as core.String
: null,
eCommerceTracking: json_.containsKey('eCommerceTracking')
? json_['eCommerceTracking'] as core.bool
: null,
enhancedECommerceTracking:
json_.containsKey('enhancedECommerceTracking')
? json_['enhancedECommerceTracking'] as core.bool
: null,
excludeQueryParameters: json_.containsKey('excludeQueryParameters')
? json_['excludeQueryParameters'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
internalWebPropertyId: json_.containsKey('internalWebPropertyId')
? json_['internalWebPropertyId'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
parentLink: json_.containsKey('parentLink')
? ProfileParentLink.fromJson(
json_['parentLink'] as core.Map<core.String, core.dynamic>)
: null,
permissions: json_.containsKey('permissions')
? ProfilePermissions.fromJson(
json_['permissions'] as core.Map<core.String, core.dynamic>)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
siteSearchCategoryParameters:
json_.containsKey('siteSearchCategoryParameters')
? json_['siteSearchCategoryParameters'] as core.String
: null,
siteSearchQueryParameters:
json_.containsKey('siteSearchQueryParameters')
? json_['siteSearchQueryParameters'] as core.String
: null,
starred: json_.containsKey('starred')
? json_['starred'] as core.bool
: null,
stripSiteSearchCategoryParameters:
json_.containsKey('stripSiteSearchCategoryParameters')
? json_['stripSiteSearchCategoryParameters'] as core.bool
: null,
stripSiteSearchQueryParameters:
json_.containsKey('stripSiteSearchQueryParameters')
? json_['stripSiteSearchQueryParameters'] as core.bool
: null,
timezone: json_.containsKey('timezone')
? json_['timezone'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
updated: json_.containsKey('updated')
? core.DateTime.parse(json_['updated'] as core.String)
: null,
webPropertyId: json_.containsKey('webPropertyId')
? json_['webPropertyId'] as core.String
: null,
websiteUrl: json_.containsKey('websiteUrl')
? json_['websiteUrl'] as core.String
: null,
);