PdfRevocationEvidence.fromJson constructor
PdfRevocationEvidence.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PdfRevocationEvidence.fromJson(Map<String, dynamic> json) {
return PdfRevocationEvidence(
signatureIndex: (json['signatureIndex'] as num?)?.toInt() ?? 0,
status: (json['status'] ?? 'unknown').toString(),
source: (json['source'] ?? 'none').toString(),
checkedAt: json['checkedAt'] == null
? null
: DateTime.tryParse(json['checkedAt'].toString())?.toUtc(),
ocspResponder: json['ocspResponder']?.toString(),
crlIssuer: json['crlIssuer']?.toString(),
nextUpdate: json['nextUpdate'] == null
? null
: DateTime.tryParse(json['nextUpdate'].toString())?.toUtc(),
softFailReason: json['softFailReason']?.toString(),
);
}