relocateV2SingleSelections function

Map<String, String> relocateV2SingleSelections(
  1. Map<String, String> selections
)

Implementation

Map<String, String> relocateV2SingleSelections(Map<String, String> selections) {
  final relocated = <String, String>{};
  for (final entry in selections.entries) {
    switch (entry.key) {
      case 'org.project_organization':
        relocated['foundation.project_structure'] = entry.value;
      case 'org.localization':
        if (entry.value != 'skip') {
          relocated['foundation.localization'] = entry.value;
        }
      default:
        relocated[entry.key] = entry.value;
    }
  }
  return relocated;
}