CreateJobOutput.fromXml constructor

CreateJobOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory CreateJobOutput.fromXml(_s.XmlElement elem) {
  return CreateJobOutput(
    artifactList: _s.extractXmlChild(elem, 'ArtifactList')?.let((elem) =>
        elem.findElements('member').map((c) => Artifact.fromXml(c)).toList()),
    jobId: _s.extractXmlStringValue(elem, 'JobId'),
    jobType: _s.extractXmlStringValue(elem, 'JobType')?.toJobType(),
    signature: _s.extractXmlStringValue(elem, 'Signature'),
    signatureFileContents:
        _s.extractXmlStringValue(elem, 'SignatureFileContents'),
    warningMessage: _s.extractXmlStringValue(elem, 'WarningMessage'),
  );
}