CACertificateDescription.fromJson constructor
CACertificateDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CACertificateDescription.fromJson(Map<String, dynamic> json) {
return CACertificateDescription(
autoRegistrationStatus: (json['autoRegistrationStatus'] as String?)
?.toAutoRegistrationStatus(),
certificateArn: json['certificateArn'] as String?,
certificateId: json['certificateId'] as String?,
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?,
status: (json['status'] as String?)?.toCACertificateStatus(),
validity: json['validity'] != null
? CertificateValidity.fromJson(
json['validity'] as Map<String, dynamic>)
: null,
);
}