toArchiveState method
Implementation
ArchiveState toArchiveState() {
switch (this) {
case 'ENABLED':
return ArchiveState.enabled;
case 'DISABLED':
return ArchiveState.disabled;
case 'CREATING':
return ArchiveState.creating;
case 'UPDATING':
return ArchiveState.updating;
case 'CREATE_FAILED':
return ArchiveState.createFailed;
case 'UPDATE_FAILED':
return ArchiveState.updateFailed;
}
throw Exception('$this is not known in enum ArchiveState');
}