GetOrganizationsAccessReportResponse.fromXml constructor

GetOrganizationsAccessReportResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory GetOrganizationsAccessReportResponse.fromXml(_s.XmlElement elem) {
  return GetOrganizationsAccessReportResponse(
    jobCreationDate: _s.extractXmlDateTimeValue(elem, 'JobCreationDate')!,
    jobStatus: _s.extractXmlStringValue(elem, 'JobStatus')!.toJobStatusType(),
    accessDetails: _s.extractXmlChild(elem, 'AccessDetails')?.let((elem) =>
        elem
            .findElements('member')
            .map((c) => AccessDetail.fromXml(c))
            .toList()),
    errorDetails: _s
        .extractXmlChild(elem, 'ErrorDetails')
        ?.let((e) => ErrorDetails.fromXml(e)),
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
    jobCompletionDate: _s.extractXmlDateTimeValue(elem, 'JobCompletionDate'),
    marker: _s.extractXmlStringValue(elem, 'Marker'),
    numberOfServicesAccessible:
        _s.extractXmlIntValue(elem, 'NumberOfServicesAccessible'),
    numberOfServicesNotAccessed:
        _s.extractXmlIntValue(elem, 'NumberOfServicesNotAccessed'),
  );
}