ReleaseArtifact.fromXml constructor

ReleaseArtifact.fromXml(
  1. XmlElement xml
)

Constructs a ReleaseArtifact from the provided xml.

Implementation

factory ReleaseArtifact.fromXml(XmlElement xml) {
  final String url = xml.getAttribute('url')!;
  final String os = xml.getAttribute('sparkle:os')!;

  return ReleaseArtifact(url: url, os: os);
}