toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bundleId = this.bundleId;
  final directoryId = this.directoryId;
  final userName = this.userName;
  final rootVolumeEncryptionEnabled = this.rootVolumeEncryptionEnabled;
  final tags = this.tags;
  final userVolumeEncryptionEnabled = this.userVolumeEncryptionEnabled;
  final volumeEncryptionKey = this.volumeEncryptionKey;
  final workspaceProperties = this.workspaceProperties;
  return {
    'BundleId': bundleId,
    'DirectoryId': directoryId,
    'UserName': userName,
    if (rootVolumeEncryptionEnabled != null)
      'RootVolumeEncryptionEnabled': rootVolumeEncryptionEnabled,
    if (tags != null) 'Tags': tags,
    if (userVolumeEncryptionEnabled != null)
      'UserVolumeEncryptionEnabled': userVolumeEncryptionEnabled,
    if (volumeEncryptionKey != null)
      'VolumeEncryptionKey': volumeEncryptionKey,
    if (workspaceProperties != null)
      'WorkspaceProperties': workspaceProperties,
  };
}