WorkspaceRequest.fromJson constructor
WorkspaceRequest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WorkspaceRequest.fromJson(Map<String, dynamic> json) {
return WorkspaceRequest(
bundleId: json['BundleId'] as String,
directoryId: json['DirectoryId'] as String,
userName: json['UserName'] as String,
rootVolumeEncryptionEnabled: json['RootVolumeEncryptionEnabled'] as bool?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
userVolumeEncryptionEnabled: json['UserVolumeEncryptionEnabled'] as bool?,
volumeEncryptionKey: json['VolumeEncryptionKey'] as String?,
workspaceProperties: json['WorkspaceProperties'] != null
? WorkspaceProperties.fromJson(
json['WorkspaceProperties'] as Map<String, dynamic>)
: null,
);
}