toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (activeAds != null) 'activeAds': activeAds!,
      if (activeAdsLimitTier != null)
        'activeAdsLimitTier': activeAdsLimitTier!,
      if (availableAds != null) 'availableAds': availableAds!,
      if (kind != null) 'kind': kind!,
    };