toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final throughputCapacity = this.throughputCapacity;
  final activeDirectoryId = this.activeDirectoryId;
  final aliases = this.aliases;
  final automaticBackupRetentionDays = this.automaticBackupRetentionDays;
  final copyTagsToBackups = this.copyTagsToBackups;
  final dailyAutomaticBackupStartTime = this.dailyAutomaticBackupStartTime;
  final deploymentType = this.deploymentType;
  final preferredSubnetId = this.preferredSubnetId;
  final selfManagedActiveDirectoryConfiguration =
      this.selfManagedActiveDirectoryConfiguration;
  final weeklyMaintenanceStartTime = this.weeklyMaintenanceStartTime;
  return {
    'ThroughputCapacity': throughputCapacity,
    if (activeDirectoryId != null) 'ActiveDirectoryId': activeDirectoryId,
    if (aliases != null) 'Aliases': aliases,
    if (automaticBackupRetentionDays != null)
      'AutomaticBackupRetentionDays': automaticBackupRetentionDays,
    if (copyTagsToBackups != null) 'CopyTagsToBackups': copyTagsToBackups,
    if (dailyAutomaticBackupStartTime != null)
      'DailyAutomaticBackupStartTime': dailyAutomaticBackupStartTime,
    if (deploymentType != null) 'DeploymentType': deploymentType.toValue(),
    if (preferredSubnetId != null) 'PreferredSubnetId': preferredSubnetId,
    if (selfManagedActiveDirectoryConfiguration != null)
      'SelfManagedActiveDirectoryConfiguration':
          selfManagedActiveDirectoryConfiguration,
    if (weeklyMaintenanceStartTime != null)
      'WeeklyMaintenanceStartTime': weeklyMaintenanceStartTime,
  };
}