AwsCertificateManagerCertificateDetails.fromJson constructor
AwsCertificateManagerCertificateDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsCertificateManagerCertificateDetails.fromJson(
Map<String, dynamic> json) {
return AwsCertificateManagerCertificateDetails(
certificateAuthorityArn: json['CertificateAuthorityArn'] as String?,
createdAt: json['CreatedAt'] as String?,
domainName: json['DomainName'] as String?,
domainValidationOptions: (json['DomainValidationOptions'] as List?)
?.whereNotNull()
.map((e) =>
AwsCertificateManagerCertificateDomainValidationOption.fromJson(
e as Map<String, dynamic>))
.toList(),
extendedKeyUsages: (json['ExtendedKeyUsages'] as List?)
?.whereNotNull()
.map((e) => AwsCertificateManagerCertificateExtendedKeyUsage.fromJson(
e as Map<String, dynamic>))
.toList(),
failureReason: json['FailureReason'] as String?,
importedAt: json['ImportedAt'] as String?,
inUseBy: (json['InUseBy'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
issuedAt: json['IssuedAt'] as String?,
issuer: json['Issuer'] as String?,
keyAlgorithm: json['KeyAlgorithm'] as String?,
keyUsages: (json['KeyUsages'] as List?)
?.whereNotNull()
.map((e) => AwsCertificateManagerCertificateKeyUsage.fromJson(
e as Map<String, dynamic>))
.toList(),
notAfter: json['NotAfter'] as String?,
notBefore: json['NotBefore'] as String?,
options: json['Options'] != null
? AwsCertificateManagerCertificateOptions.fromJson(
json['Options'] as Map<String, dynamic>)
: null,
renewalEligibility: json['RenewalEligibility'] as String?,
renewalSummary: json['RenewalSummary'] != null
? AwsCertificateManagerCertificateRenewalSummary.fromJson(
json['RenewalSummary'] as Map<String, dynamic>)
: null,
serial: json['Serial'] as String?,
signatureAlgorithm: json['SignatureAlgorithm'] as String?,
status: json['Status'] as String?,
subject: json['Subject'] as String?,
subjectAlternativeNames: (json['SubjectAlternativeNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
type: json['Type'] as String?,
);
}