CertificateDescription.fromJson constructor
CertificateDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CertificateDescription.fromJson(Map<String, dynamic> json) {
return CertificateDescription(
caCertificateId: json['caCertificateId'] as String?,
certificateArn: json['certificateArn'] as String?,
certificateId: json['certificateId'] as String?,
certificateMode:
(json['certificateMode'] as String?)?.toCertificateMode(),
certificatePem: json['certificatePem'] as String?,
creationDate: timeStampFromJson(json['creationDate']),
customerVersion: json['customerVersion'] as int?,
generationId: json['generationId'] as String?,
lastModifiedDate: timeStampFromJson(json['lastModifiedDate']),
ownedBy: json['ownedBy'] as String?,
previousOwnedBy: json['previousOwnedBy'] as String?,
status: (json['status'] as String?)?.toCertificateStatus(),
transferData: json['transferData'] != null
? TransferData.fromJson(json['transferData'] as Map<String, dynamic>)
: null,
validity: json['validity'] != null
? CertificateValidity.fromJson(
json['validity'] as Map<String, dynamic>)
: null,
);
}