SslPolicy.fromXml constructor

SslPolicy.fromXml(
  1. XmlElement elem
)

Implementation

factory SslPolicy.fromXml(_s.XmlElement elem) {
  return SslPolicy(
    ciphers: _s.extractXmlChild(elem, 'Ciphers')?.let((elem) =>
        elem.findElements('member').map((c) => Cipher.fromXml(c)).toList()),
    name: _s.extractXmlStringValue(elem, 'Name'),
    sslProtocols: _s
        .extractXmlChild(elem, 'SslProtocols')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
  );
}