private static List translateSortFromCFNToSDK()

in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java [84:99]


  private static List<SortProperty> translateSortFromCFNToSDK(List<software.amazon.amplifyuibuilder.component.SortProperty> sort) {
    if (sort == null) {
      return null;
    }
    List<SortProperty> translated = new ArrayList<>();
    for (software.amazon.amplifyuibuilder.component.SortProperty sortProperty : sort) {
      translated.add(
          SortProperty
              .builder()
              .direction(sortProperty.getDirection())
              .field(sortProperty.getField())
              .build()
      );
    }
    return translated;
  }