encode method

  1. @override
dynamic encode(
  1. DataOperation self
)

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';
  }
}