fromInterfaces static method

List<USBInterface> fromInterfaces(
  1. List interfaces
)

Implementation

static List<USBInterface> fromInterfaces(List<dynamic> interfaces) {
  return interfaces
      .map((interface) => USBInterface(
          interfaceNumber: getProperty(interface, "interfaceNumber"),
          claimed: getProperty(interface, "claimed"),
          alternatesInterface: getProperty(interface, "alternates") == null
              ? null
              : USBAlternateInterface.fromAlternateInterfaces(
                  getProperty(interface, "alternates"))))
      .toList();
}