Account.fromJson constructor
Account.fromJson(
- Map json_
Implementation
Account.fromJson(core.Map json_)
: this(
accountPermissionIds: json_.containsKey('accountPermissionIds')
? (json_['accountPermissionIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
accountProfile: json_.containsKey('accountProfile')
? json_['accountProfile'] as core.String
: null,
active:
json_.containsKey('active') ? json_['active'] as core.bool : null,
activeAdsLimitTier: json_.containsKey('activeAdsLimitTier')
? json_['activeAdsLimitTier'] as core.String
: null,
activeViewOptOut: json_.containsKey('activeViewOptOut')
? json_['activeViewOptOut'] as core.bool
: null,
availablePermissionIds: json_.containsKey('availablePermissionIds')
? (json_['availablePermissionIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
countryId: json_.containsKey('countryId')
? json_['countryId'] as core.String
: null,
currencyId: json_.containsKey('currencyId')
? json_['currencyId'] as core.String
: null,
defaultCreativeSizeId: json_.containsKey('defaultCreativeSizeId')
? json_['defaultCreativeSizeId'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
locale: json_.containsKey('locale')
? json_['locale'] as core.String
: null,
maximumImageSize: json_.containsKey('maximumImageSize')
? json_['maximumImageSize'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nielsenOcrEnabled: json_.containsKey('nielsenOcrEnabled')
? json_['nielsenOcrEnabled'] as core.bool
: null,
reportsConfiguration: json_.containsKey('reportsConfiguration')
? ReportsConfiguration.fromJson(json_['reportsConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
shareReportsWithTwitter: json_.containsKey('shareReportsWithTwitter')
? json_['shareReportsWithTwitter'] as core.bool
: null,
teaserSizeLimit: json_.containsKey('teaserSizeLimit')
? json_['teaserSizeLimit'] as core.String
: null,
);