Account.fromJson constructor
Account.fromJson(
- Map json_
Implementation
Account.fromJson(core.Map json_)
: this(
accountManagement: json_['accountManagement'] as core.String?,
adsLinks: (json_['adsLinks'] as core.List?)
?.map((value) => AccountAdsLink.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
adultContent: json_['adultContent'] as core.bool?,
automaticImprovements: json_.containsKey('automaticImprovements')
? AccountAutomaticImprovements.fromJson(
json_['automaticImprovements']
as core.Map<core.String, core.dynamic>)
: null,
automaticLabelIds: (json_['automaticLabelIds'] as core.List?)
?.map((value) => value as core.String)
.toList(),
businessIdentity: json_.containsKey('businessIdentity')
? AccountBusinessIdentity.fromJson(json_['businessIdentity']
as core.Map<core.String, core.dynamic>)
: null,
businessInformation: json_.containsKey('businessInformation')
? AccountBusinessInformation.fromJson(json_['businessInformation']
as core.Map<core.String, core.dynamic>)
: null,
conversionSettings: json_.containsKey('conversionSettings')
? AccountConversionSettings.fromJson(json_['conversionSettings']
as core.Map<core.String, core.dynamic>)
: null,
cssId: json_['cssId'] as core.String?,
googleMyBusinessLink: json_.containsKey('googleMyBusinessLink')
? AccountGoogleMyBusinessLink.fromJson(
json_['googleMyBusinessLink']
as core.Map<core.String, core.dynamic>)
: null,
id: json_['id'] as core.String?,
kind: json_['kind'] as core.String?,
labelIds: (json_['labelIds'] as core.List?)
?.map((value) => value as core.String)
.toList(),
name: json_['name'] as core.String?,
sellerId: json_['sellerId'] as core.String?,
users: (json_['users'] as core.List?)
?.map((value) => AccountUser.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
websiteUrl: json_['websiteUrl'] as core.String?,
youtubeChannelLinks: (json_['youtubeChannelLinks'] as core.List?)
?.map((value) => AccountYouTubeChannelLink.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
);