toRetentionAction method

RetentionAction toRetentionAction()

Implementation

RetentionAction toRetentionAction() {
  switch (this) {
    case 'NONE':
      return RetentionAction.none;
    case 'DELETE':
      return RetentionAction.delete;
    case 'PERMANENTLY_DELETE':
      return RetentionAction.permanentlyDelete;
  }
  throw Exception('$this is not known in enum RetentionAction');
}