toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activationPolicy != null) 'activationPolicy': activationPolicy!,
      if (activeDirectoryConfig != null)
        'activeDirectoryConfig': activeDirectoryConfig!.toJson(),
      if (authorizedGaeApplications != null)
        'authorizedGaeApplications': authorizedGaeApplications!,
      if (availabilityType != null) 'availabilityType': availabilityType!,
      if (backupConfiguration != null)
        'backupConfiguration': backupConfiguration!.toJson(),
      if (collation != null) 'collation': collation!,
      if (crashSafeReplicationEnabled != null)
        'crashSafeReplicationEnabled': crashSafeReplicationEnabled!,
      if (dataDiskSizeGb != null) 'dataDiskSizeGb': dataDiskSizeGb!,
      if (dataDiskType != null) 'dataDiskType': dataDiskType!,
      if (databaseFlags != null)
        'databaseFlags':
            databaseFlags!.map((value) => value.toJson()).toList(),
      if (databaseReplicationEnabled != null)
        'databaseReplicationEnabled': databaseReplicationEnabled!,
      if (denyMaintenancePeriods != null)
        'denyMaintenancePeriods':
            denyMaintenancePeriods!.map((value) => value.toJson()).toList(),
      if (insightsConfig != null) 'insightsConfig': insightsConfig!.toJson(),
      if (ipConfiguration != null)
        'ipConfiguration': ipConfiguration!.toJson(),
      if (kind != null) 'kind': kind!,
      if (locationPreference != null)
        'locationPreference': locationPreference!.toJson(),
      if (maintenanceWindow != null)
        'maintenanceWindow': maintenanceWindow!.toJson(),
      if (pricingPlan != null) 'pricingPlan': pricingPlan!,
      if (replicationType != null) 'replicationType': replicationType!,
      if (settingsVersion != null) 'settingsVersion': settingsVersion!,
      if (storageAutoResize != null) 'storageAutoResize': storageAutoResize!,
      if (storageAutoResizeLimit != null)
        'storageAutoResizeLimit': storageAutoResizeLimit!,
      if (tier != null) 'tier': tier!,
      if (userLabels != null) 'userLabels': userLabels!,
    };