Account.fromJson constructor

Account.fromJson(
  1. Map json_
)

Implementation

Account.fromJson(core.Map json_)
    : this(
        accountManagement: json_.containsKey('accountManagement')
            ? json_['accountManagement'] as core.String
            : null,
        adsLinks: json_.containsKey('adsLinks')
            ? (json_['adsLinks'] as core.List)
                .map((value) => AccountAdsLink.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        adultContent: json_.containsKey('adultContent')
            ? json_['adultContent'] as core.bool
            : null,
        automaticImprovements: json_.containsKey('automaticImprovements')
            ? AccountAutomaticImprovements.fromJson(
                json_['automaticImprovements']
                    as core.Map<core.String, core.dynamic>)
            : null,
        automaticLabelIds: json_.containsKey('automaticLabelIds')
            ? (json_['automaticLabelIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        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_.containsKey('cssId') ? json_['cssId'] as core.String : null,
        googleMyBusinessLink: json_.containsKey('googleMyBusinessLink')
            ? AccountGoogleMyBusinessLink.fromJson(
                json_['googleMyBusinessLink']
                    as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelIds: json_.containsKey('labelIds')
            ? (json_['labelIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sellerId: json_.containsKey('sellerId')
            ? json_['sellerId'] as core.String
            : null,
        users: json_.containsKey('users')
            ? (json_['users'] as core.List)
                .map((value) => AccountUser.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        websiteUrl: json_.containsKey('websiteUrl')
            ? json_['websiteUrl'] as core.String
            : null,
        youtubeChannelLinks: json_.containsKey('youtubeChannelLinks')
            ? (json_['youtubeChannelLinks'] as core.List)
                .map((value) => AccountYouTubeChannelLink.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );