COSCORSConfiguration.fromXml constructor

COSCORSConfiguration.fromXml(
  1. XmlElement? xml
)

Implementation

factory COSCORSConfiguration.fromXml(XmlElement? xml) {
  return COSCORSConfiguration(
    corsRules: xml
            ?.findElements('CORSRule')
            .map((XmlElement xmlElement) => COSCORSRule.fromXml(xmlElement))
            .toList() ??
        <COSCORSRule>[],
  );
}