getDataSourceOperation function
Returns a DataSourceOperation by name
.
Implementation
DataSourceOperation? getDataSourceOperation(String? name) {
if (name == null) return null;
name = name.trim().toLowerCase();
switch (name) {
case 'get':
return DataSourceOperation.get;
case 'find':
return DataSourceOperation.find;
case 'findbyid':
return DataSourceOperation.findByID;
case 'findbyidrange':
return DataSourceOperation.findByIDRange;
case 'put':
return DataSourceOperation.put;
default:
return null;
}
}