Signature.fromMap constructor
Signature.fromMap(
- Map<String, dynamic> map
)
Implementation
factory Signature.fromMap(Map<String, dynamic> map) {
return Signature(
hash: map['hash'],
signature: map['signature'],
subjectDN: map['subjectDN'],
issuerDN: map['issuerDN'],
serialNumber: map['serialNumber']?.toString(),
notBefore: map['notBefore'] != null
? DateTime.fromMillisecondsSinceEpoch(map['notBefore'])
: null,
notAfter: map['notAfter'] != null
? DateTime.fromMillisecondsSinceEpoch(map['notAfter'])
: null,
publicKeyAlgorithm: map['publicKeyAlgorithm'],
publicKeyFormat: map['publicKeyFormat'],
publicKeyEncoded: map['publicKeyEncoded'] != null
? Uint8List.fromList(List<int>.from(map['publicKeyEncoded']))
: null,
publicKey: map['publicKey'],
publicKeyHash: map['publicKeyHash'],
);
}