toReturnValue method

ReturnValue toReturnValue()

Implementation

ReturnValue toReturnValue() {
  switch (this) {
    case 'NONE':
      return ReturnValue.none;
    case 'ALL_OLD':
      return ReturnValue.allOld;
    case 'UPDATED_OLD':
      return ReturnValue.updatedOld;
    case 'ALL_NEW':
      return ReturnValue.allNew;
    case 'UPDATED_NEW':
      return ReturnValue.updatedNew;
  }
  throw Exception('$this is not known in enum ReturnValue');
}