toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final automaticBackupRetentionDays = this.automaticBackupRetentionDays;
  final dailyAutomaticBackupStartTime = this.dailyAutomaticBackupStartTime;
  final selfManagedActiveDirectoryConfiguration =
      this.selfManagedActiveDirectoryConfiguration;
  final throughputCapacity = this.throughputCapacity;
  final weeklyMaintenanceStartTime = this.weeklyMaintenanceStartTime;
  return {
    if (automaticBackupRetentionDays != null)
      'AutomaticBackupRetentionDays': automaticBackupRetentionDays,
    if (dailyAutomaticBackupStartTime != null)
      'DailyAutomaticBackupStartTime': dailyAutomaticBackupStartTime,
    if (selfManagedActiveDirectoryConfiguration != null)
      'SelfManagedActiveDirectoryConfiguration':
          selfManagedActiveDirectoryConfiguration,
    if (throughputCapacity != null) 'ThroughputCapacity': throughputCapacity,
    if (weeklyMaintenanceStartTime != null)
      'WeeklyMaintenanceStartTime': weeklyMaintenanceStartTime,
  };
}