toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (botFilteringEnabled != null)
        'botFilteringEnabled': botFilteringEnabled!,
      if (childLink != null) 'childLink': childLink!,
      if (created != null) 'created': created!.toUtc().toIso8601String(),
      if (currency != null) 'currency': currency!,
      if (defaultPage != null) 'defaultPage': defaultPage!,
      if (eCommerceTracking != null) 'eCommerceTracking': eCommerceTracking!,
      if (enhancedECommerceTracking != null)
        'enhancedECommerceTracking': enhancedECommerceTracking!,
      if (excludeQueryParameters != null)
        'excludeQueryParameters': excludeQueryParameters!,
      if (id != null) 'id': id!,
      if (internalWebPropertyId != null)
        'internalWebPropertyId': internalWebPropertyId!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (parentLink != null) 'parentLink': parentLink!,
      if (permissions != null) 'permissions': permissions!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (siteSearchCategoryParameters != null)
        'siteSearchCategoryParameters': siteSearchCategoryParameters!,
      if (siteSearchQueryParameters != null)
        'siteSearchQueryParameters': siteSearchQueryParameters!,
      if (starred != null) 'starred': starred!,
      if (stripSiteSearchCategoryParameters != null)
        'stripSiteSearchCategoryParameters':
            stripSiteSearchCategoryParameters!,
      if (stripSiteSearchQueryParameters != null)
        'stripSiteSearchQueryParameters': stripSiteSearchQueryParameters!,
      if (timezone != null) 'timezone': timezone!,
      if (type != null) 'type': type!,
      if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
      if (webPropertyId != null) 'webPropertyId': webPropertyId!,
      if (websiteUrl != null) 'websiteUrl': websiteUrl!,
    };