toInventoryOptionalField method
Implementation
InventoryOptionalField toInventoryOptionalField() {
switch (this) {
case 'Size':
return InventoryOptionalField.size;
case 'LastModifiedDate':
return InventoryOptionalField.lastModifiedDate;
case 'StorageClass':
return InventoryOptionalField.storageClass;
case 'ETag':
return InventoryOptionalField.eTag;
case 'IsMultipartUploaded':
return InventoryOptionalField.isMultipartUploaded;
case 'ReplicationStatus':
return InventoryOptionalField.replicationStatus;
case 'EncryptionStatus':
return InventoryOptionalField.encryptionStatus;
case 'ObjectLockRetainUntilDate':
return InventoryOptionalField.objectLockRetainUntilDate;
case 'ObjectLockMode':
return InventoryOptionalField.objectLockMode;
case 'ObjectLockLegalHoldStatus':
return InventoryOptionalField.objectLockLegalHoldStatus;
case 'IntelligentTieringAccessTier':
return InventoryOptionalField.intelligentTieringAccessTier;
}
throw Exception('$this is not known in enum InventoryOptionalField');
}