DeviceParameterRequest.fromXML constructor

DeviceParameterRequest.fromXML(
  1. String xmlSTR
)

Implementation

factory DeviceParameterRequest.fromXML(String xmlSTR) {
  final document = XmlDocument.parse(xmlSTR);
  String messageID = document.rootElement.attributes
      .firstWhere((p0) => p0.name.toString() == "messageID")
      .value;

  return DeviceParameterRequest(messageID: int.parse(messageID));
}