toSchemaExtensionStatus method
Implementation
SchemaExtensionStatus toSchemaExtensionStatus() {
switch (this) {
case 'Initializing':
return SchemaExtensionStatus.initializing;
case 'CreatingSnapshot':
return SchemaExtensionStatus.creatingSnapshot;
case 'UpdatingSchema':
return SchemaExtensionStatus.updatingSchema;
case 'Replicating':
return SchemaExtensionStatus.replicating;
case 'CancelInProgress':
return SchemaExtensionStatus.cancelInProgress;
case 'RollbackInProgress':
return SchemaExtensionStatus.rollbackInProgress;
case 'Cancelled':
return SchemaExtensionStatus.cancelled;
case 'Failed':
return SchemaExtensionStatus.failed;
case 'Completed':
return SchemaExtensionStatus.completed;
}
throw Exception('$this is not known in enum SchemaExtensionStatus');
}