fromEndpoints static method
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();
}