LoadBalancerTlsCertificate.fromJson constructor
LoadBalancerTlsCertificate.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LoadBalancerTlsCertificate.fromJson(Map<String, dynamic> json) {
return LoadBalancerTlsCertificate(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
domainName: json['domainName'] as String?,
domainValidationRecords: (json['domainValidationRecords'] as List?)
?.whereNotNull()
.map((e) => LoadBalancerTlsCertificateDomainValidationRecord.fromJson(
e as Map<String, dynamic>))
.toList(),
failureReason: (json['failureReason'] as String?)
?.toLoadBalancerTlsCertificateFailureReason(),
isAttached: json['isAttached'] as bool?,
issuedAt: timeStampFromJson(json['issuedAt']),
issuer: json['issuer'] as String?,
keyAlgorithm: json['keyAlgorithm'] as String?,
loadBalancerName: json['loadBalancerName'] as String?,
location: json['location'] != null
? ResourceLocation.fromJson(json['location'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
notAfter: timeStampFromJson(json['notAfter']),
notBefore: timeStampFromJson(json['notBefore']),
renewalSummary: json['renewalSummary'] != null
? LoadBalancerTlsCertificateRenewalSummary.fromJson(
json['renewalSummary'] as Map<String, dynamic>)
: null,
resourceType: (json['resourceType'] as String?)?.toResourceType(),
revocationReason: (json['revocationReason'] as String?)
?.toLoadBalancerTlsCertificateRevocationReason(),
revokedAt: timeStampFromJson(json['revokedAt']),
serial: json['serial'] as String?,
signatureAlgorithm: json['signatureAlgorithm'] as String?,
status: (json['status'] as String?)?.toLoadBalancerTlsCertificateStatus(),
subject: json['subject'] as String?,
subjectAlternativeNames: (json['subjectAlternativeNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
supportCode: json['supportCode'] as String?,
tags: (json['tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}