fromDynamic static method

ConnectedDevice fromDynamic(
  1. dynamic map
)

Implementation

static ConnectedDevice fromDynamic(dynamic map) {
  late ConnectedDevice result;

  if (map == null) {
    throw Exception('[ConnectedDevice.fromDynamic]: map is null');
  } else {
    result = ConnectedDevice(
      device: TestDeviceInfo.fromDynamic(map['device']),
      driverName: map['driverName'],
      testControllerState: TestControllerState.fromDynamic(
        map['testControllerState'],
      ),
    );
  }

  return result;
}