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')!,
    arn: _s.extractXmlStringValue(elem, 'ARN'),
    created: _s.extractXmlBoolValue(elem, 'Created'),
    deleted: _s.extractXmlBoolValue(elem, 'Deleted'),
    docService: _s
        .extractXmlChild(elem, 'DocService')
        ?.let((e) => ServiceEndpoint.fromXml(e)),
    limits: _s.extractXmlChild(elem, 'Limits')?.let((e) => Limits.fromXml(e)),
    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)),
  );
}