GetServiceLastAccessedDetailsResponse.fromXml constructor
GetServiceLastAccessedDetailsResponse.fromXml(
- XmlElement elem
Implementation
factory GetServiceLastAccessedDetailsResponse.fromXml(_s.XmlElement elem) {
return GetServiceLastAccessedDetailsResponse(
jobCompletionDate: _s.extractXmlDateTimeValue(elem, 'JobCompletionDate')!,
jobCreationDate: _s.extractXmlDateTimeValue(elem, 'JobCreationDate')!,
jobStatus: _s.extractXmlStringValue(elem, 'JobStatus')!.toJobStatusType(),
servicesLastAccessed: _s
.extractXmlChild(elem, 'ServicesLastAccessed')!
.findElements('member')
.map((c) => ServiceLastAccessed.fromXml(c))
.toList(),
error: _s
.extractXmlChild(elem, 'Error')
?.let((e) => ErrorDetails.fromXml(e)),
isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
jobType: _s
.extractXmlStringValue(elem, 'JobType')
?.toAccessAdvisorUsageGranularityType(),
marker: _s.extractXmlStringValue(elem, 'Marker'),
);
}