toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final autoImportPolicy = this.autoImportPolicy;
  final automaticBackupRetentionDays = this.automaticBackupRetentionDays;
  final copyTagsToBackups = this.copyTagsToBackups;
  final dailyAutomaticBackupStartTime = this.dailyAutomaticBackupStartTime;
  final deploymentType = this.deploymentType;
  final driveCacheType = this.driveCacheType;
  final exportPath = this.exportPath;
  final importPath = this.importPath;
  final importedFileChunkSize = this.importedFileChunkSize;
  final perUnitStorageThroughput = this.perUnitStorageThroughput;
  final weeklyMaintenanceStartTime = this.weeklyMaintenanceStartTime;
  return {
    if (autoImportPolicy != null)
      'AutoImportPolicy': autoImportPolicy.toValue(),
    if (automaticBackupRetentionDays != null)
      'AutomaticBackupRetentionDays': automaticBackupRetentionDays,
    if (copyTagsToBackups != null) 'CopyTagsToBackups': copyTagsToBackups,
    if (dailyAutomaticBackupStartTime != null)
      'DailyAutomaticBackupStartTime': dailyAutomaticBackupStartTime,
    if (deploymentType != null) 'DeploymentType': deploymentType.toValue(),
    if (driveCacheType != null) 'DriveCacheType': driveCacheType.toValue(),
    if (exportPath != null) 'ExportPath': exportPath,
    if (importPath != null) 'ImportPath': importPath,
    if (importedFileChunkSize != null)
      'ImportedFileChunkSize': importedFileChunkSize,
    if (perUnitStorageThroughput != null)
      'PerUnitStorageThroughput': perUnitStorageThroughput,
    if (weeklyMaintenanceStartTime != null)
      'WeeklyMaintenanceStartTime': weeklyMaintenanceStartTime,
  };
}