fromMap static method

XmlSignatureConfig fromMap(
  1. Map<String, dynamic> map
)

Implementation

static XmlSignatureConfig fromMap(Map<String, dynamic> map) {
  return XmlSignatureConfig(
    signatureId: map['signatureId'],
    canonicalizationMethod: map['canonicalizationMethod'] ?? 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315',
    signatureMethod: map['signatureMethod'] ?? 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
    digestMethod: map['digestMethod'] ?? 'http://www.w3.org/2001/04/xmlenc#sha256',
    referenceUri: map['referenceUri'],
    namespaces: map['namespaces'] != null ? Map<String, String>.from(map['namespaces']) : null,
    includeCertificate: map['includeCertificate'] ?? true,
    enveloped: map['enveloped'] ?? true,
    xpath: map['xpath'],
  );
}