WebsiteConfiguration.fromXml constructor

WebsiteConfiguration.fromXml(
  1. XmlElement xml
)

Implementation

WebsiteConfiguration.fromXml(XmlElement xml) {
  errorDocument = ErrorDocument.fromXml(getProp(xml, 'ErrorDocument'));
  indexDocument = IndexDocument.fromXml(getProp(xml, 'IndexDocument'));
  redirectAllRequestsTo =
      RedirectAllRequestsTo.fromXml(getProp(xml, 'RedirectAllRequestsTo'));
  routingRules = RoutingRule.fromXml(getProp(xml, 'RoutingRules'));
}