toConflictResolutionStrategyTypeEnum method

ConflictResolutionStrategyTypeEnum toConflictResolutionStrategyTypeEnum()

Implementation

ConflictResolutionStrategyTypeEnum toConflictResolutionStrategyTypeEnum() {
  switch (this) {
    case 'NONE':
      return ConflictResolutionStrategyTypeEnum.none;
    case 'ACCEPT_SOURCE':
      return ConflictResolutionStrategyTypeEnum.acceptSource;
    case 'ACCEPT_DESTINATION':
      return ConflictResolutionStrategyTypeEnum.acceptDestination;
    case 'AUTOMERGE':
      return ConflictResolutionStrategyTypeEnum.automerge;
  }
  throw Exception(
      '$this is not known in enum ConflictResolutionStrategyTypeEnum');
}