encode method
Implementation
@override
dynamic encode(ApiOperation self) {
switch (self) {
case ApiOperation.login:
return 'login';
case ApiOperation.create:
return 'create';
case ApiOperation.search:
return 'search';
case ApiOperation.update:
return 'update';
case ApiOperation.delete:
return 'delete';
case ApiOperation.bulkCreate:
return 'bulk_create';
case ApiOperation.bulkUpdate:
return 'bulk_update';
case ApiOperation.bulkDelete:
return 'bulk_delete';
case ApiOperation.singleCreate:
return 'single_create';
}
}