getDataSourceOperationName function

String? getDataSourceOperationName(
  1. DataSourceOperation? operation
)

Implementation

String? getDataSourceOperationName(DataSourceOperation? operation) {
  if (operation == null) return null;
  switch (operation) {
    case DataSourceOperation.get:
      return 'get';
    case DataSourceOperation.find:
      return 'find';
    case DataSourceOperation.findByID:
      return 'findByID';
    case DataSourceOperation.findByIDRange:
      return 'findByIDRange';
    case DataSourceOperation.put:
      return 'put';
    default:
      return null;
  }
}