InstanceState.fromXml constructor

InstanceState.fromXml(
  1. XmlElement elem
)

Implementation

factory InstanceState.fromXml(_s.XmlElement elem) {
  return InstanceState(
    description: _s.extractXmlStringValue(elem, 'Description'),
    instanceId: _s.extractXmlStringValue(elem, 'InstanceId'),
    reasonCode: _s.extractXmlStringValue(elem, 'ReasonCode'),
    state: _s.extractXmlStringValue(elem, 'State'),
  );
}