encode method
Implementation
@override
dynamic encode(DataOperation self) {
switch (self) {
case DataOperation.create:
return 'create';
case DataOperation.search:
return 'search';
case DataOperation.update:
return 'update';
case DataOperation.delete:
return 'delete';
case DataOperation.singleCreate:
return 'singleCreate';
}
}