decode method

  1. @override
DataOperation decode(
  1. dynamic value
)

Implementation

@override
DataOperation decode(dynamic value) {
  switch (value) {
    case 'create':
      return DataOperation.create;
    case 'search':
      return DataOperation.search;
    case 'update':
      return DataOperation.update;
    case 'delete':
      return DataOperation.delete;
    case 'singleCreate':
      return DataOperation.singleCreate;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}