toDocumentStatus method
Implementation
DocumentStatus toDocumentStatus() {
switch (this) {
case 'Creating':
return DocumentStatus.creating;
case 'Active':
return DocumentStatus.active;
case 'Updating':
return DocumentStatus.updating;
case 'Deleting':
return DocumentStatus.deleting;
case 'Failed':
return DocumentStatus.failed;
}
throw Exception('$this is not known in enum DocumentStatus');
}