DomainStatus.fromXml constructor

DomainStatus.fromXml(
  1. XmlElement elem
)

Implementation

factory DomainStatus.fromXml(_s.XmlElement elem) {
  return DomainStatus(
    domainId: _s.extractXmlStringValue(elem, 'DomainId')!,
    domainName: _s.extractXmlStringValue(elem, 'DomainName')!,
    requiresIndexDocuments:
        _s.extractXmlBoolValue(elem, 'RequiresIndexDocuments')!,
    created: _s.extractXmlBoolValue(elem, 'Created'),
    deleted: _s.extractXmlBoolValue(elem, 'Deleted'),
    docService: _s
        .extractXmlChild(elem, 'DocService')
        ?.let((e) => ServiceEndpoint.fromXml(e)),
    numSearchableDocs: _s.extractXmlIntValue(elem, 'NumSearchableDocs'),
    processing: _s.extractXmlBoolValue(elem, 'Processing'),
    searchInstanceCount: _s.extractXmlIntValue(elem, 'SearchInstanceCount'),
    searchInstanceType: _s.extractXmlStringValue(elem, 'SearchInstanceType'),
    searchPartitionCount: _s.extractXmlIntValue(elem, 'SearchPartitionCount'),
    searchService: _s
        .extractXmlChild(elem, 'SearchService')
        ?.let((e) => ServiceEndpoint.fromXml(e)),
  );
}