CertificateAuthority.fromJson constructor
CertificateAuthority.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CertificateAuthority.fromJson(Map<String, dynamic> json) {
return CertificateAuthority(
arn: json['Arn'] as String?,
certificateAuthorityConfiguration:
json['CertificateAuthorityConfiguration'] != null
? CertificateAuthorityConfiguration.fromJson(
json['CertificateAuthorityConfiguration']
as Map<String, dynamic>)
: null,
createdAt: timeStampFromJson(json['CreatedAt']),
failureReason: (json['FailureReason'] as String?)?.toFailureReason(),
lastStateChangeAt: timeStampFromJson(json['LastStateChangeAt']),
notAfter: timeStampFromJson(json['NotAfter']),
notBefore: timeStampFromJson(json['NotBefore']),
ownerAccount: json['OwnerAccount'] as String?,
restorableUntil: timeStampFromJson(json['RestorableUntil']),
revocationConfiguration: json['RevocationConfiguration'] != null
? RevocationConfiguration.fromJson(
json['RevocationConfiguration'] as Map<String, dynamic>)
: null,
serial: json['Serial'] as String?,
status: (json['Status'] as String?)?.toCertificateAuthorityStatus(),
type: (json['Type'] as String?)?.toCertificateAuthorityType(),
);
}