ViewerCertificate.fromXml constructor

ViewerCertificate.fromXml(
  1. XmlElement elem
)

Implementation

factory ViewerCertificate.fromXml(_s.XmlElement elem) {
  return ViewerCertificate(
    aCMCertificateArn: _s.extractXmlStringValue(elem, 'ACMCertificateArn'),
    certificate: _s.extractXmlStringValue(elem, 'Certificate'),
    certificateSource: _s
        .extractXmlStringValue(elem, 'CertificateSource')
        ?.toCertificateSource(),
    cloudFrontDefaultCertificate:
        _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'),
    iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'),
    minimumProtocolVersion: _s
        .extractXmlStringValue(elem, 'MinimumProtocolVersion')
        ?.toMinimumProtocolVersion(),
    sSLSupportMethod: _s
        .extractXmlStringValue(elem, 'SSLSupportMethod')
        ?.toSSLSupportMethod(),
  );
}