Certificate.fromJson constructor
Certificate.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Certificate.fromJson(Map<String, dynamic> json) {
return Certificate(
certificateId: json['CertificateId'] as String?,
clientCertAuthSettings: json['ClientCertAuthSettings'] != null
? ClientCertAuthSettings.fromJson(
json['ClientCertAuthSettings'] as Map<String, dynamic>)
: null,
commonName: json['CommonName'] as String?,
expiryDateTime: timeStampFromJson(json['ExpiryDateTime']),
registeredDateTime: timeStampFromJson(json['RegisteredDateTime']),
state: (json['State'] as String?)?.toCertificateState(),
stateReason: json['StateReason'] as String?,
type: (json['Type'] as String?)?.toCertificateType(),
);
}