parse static method

Status? parse(
  1. XmlElement? element
)

Implementation

static Status? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  return Status(
    state: element.getAttribute('state'),
    reason: element.getAttribute('reason'),
  );
}