DeviceLockRequest.fromXML constructor
DeviceLockRequest.fromXML(
- String xmlSTR
Implementation
factory DeviceLockRequest.fromXML(String xmlSTR) {
final document = XmlDocument.parse(xmlSTR);
String lockMethod = document.rootElement.childElements.first.attributes
.firstWhere((p0) => p0.name.toString() == "lockMethod",
orElse: orElseEmpty)
.value;
String renew = document.rootElement.childElements.first.attributes
.firstWhere((p0) => p0.name.toString() == "renew", orElse: orElseEmpty)
.value;
String messageID = document.rootElement.attributes
.firstWhere((p0) => p0.name.toString() == "messageID")
.value;
return DeviceLockRequest(
lockMethod: lockMethod, messageID: int.parse(messageID), renew: renew);
}