fromEndpoints static method

List<USBEndpoint> fromEndpoints(
  1. List endpoints
)

Implementation

static List<USBEndpoint> fromEndpoints(List<dynamic> endpoints) {
  return endpoints
      .map((endpoint) => USBEndpoint(
          direction: getProperty(endpoint, "direction"),
          endpointNumber: getProperty(endpoint, "endpointNumber"),
          packetSize: getProperty(endpoint, "packetSize"),
          type: getProperty(endpoint, "type")))
      .toList();
}