fromConfiguration static method

USBConfiguration fromConfiguration(
  1. dynamic configuration
)

Implementation

static USBConfiguration fromConfiguration(dynamic configuration) {
  return USBConfiguration(
    configurationName: getProperty(configuration, "configurationName"),
    configurationValue: getProperty(configuration, "configurationValue"),
    usbInterfaces: getProperty(configuration, "interfaces") == null
        ? null
        : USBInterface.fromInterfaces(
            getProperty(configuration, "interfaces")),
  );
}