WindowsFileSystemConfiguration.fromJson constructor
WindowsFileSystemConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WindowsFileSystemConfiguration.fromJson(Map<String, dynamic> json) {
return WindowsFileSystemConfiguration(
activeDirectoryId: json['ActiveDirectoryId'] as String?,
aliases: (json['Aliases'] as List?)
?.whereNotNull()
.map((e) => Alias.fromJson(e as Map<String, dynamic>))
.toList(),
automaticBackupRetentionDays:
json['AutomaticBackupRetentionDays'] as int?,
copyTagsToBackups: json['CopyTagsToBackups'] as bool?,
dailyAutomaticBackupStartTime:
json['DailyAutomaticBackupStartTime'] as String?,
deploymentType:
(json['DeploymentType'] as String?)?.toWindowsDeploymentType(),
maintenanceOperationsInProgress:
(json['MaintenanceOperationsInProgress'] as List?)
?.whereNotNull()
.map((e) => (e as String).toFileSystemMaintenanceOperation())
.toList(),
preferredFileServerIp: json['PreferredFileServerIp'] as String?,
preferredSubnetId: json['PreferredSubnetId'] as String?,
remoteAdministrationEndpoint:
json['RemoteAdministrationEndpoint'] as String?,
selfManagedActiveDirectoryConfiguration:
json['SelfManagedActiveDirectoryConfiguration'] != null
? SelfManagedActiveDirectoryAttributes.fromJson(
json['SelfManagedActiveDirectoryConfiguration']
as Map<String, dynamic>)
: null,
throughputCapacity: json['ThroughputCapacity'] as int?,
weeklyMaintenanceStartTime: json['WeeklyMaintenanceStartTime'] as String?,
);
}