DomainName.fromJson constructor
DomainName.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DomainName.fromJson(Map<String, dynamic> json) {
return DomainName(
certificateArn: json['certificateArn'] as String?,
certificateName: json['certificateName'] as String?,
certificateUploadDate: timeStampFromJson(json['certificateUploadDate']),
distributionDomainName: json['distributionDomainName'] as String?,
distributionHostedZoneId: json['distributionHostedZoneId'] as String?,
domainName: json['domainName'] as String?,
domainNameStatus:
(json['domainNameStatus'] as String?)?.toDomainNameStatus(),
domainNameStatusMessage: json['domainNameStatusMessage'] as String?,
endpointConfiguration: json['endpointConfiguration'] != null
? EndpointConfiguration.fromJson(
json['endpointConfiguration'] as Map<String, dynamic>)
: null,
mutualTlsAuthentication: json['mutualTlsAuthentication'] != null
? MutualTlsAuthentication.fromJson(
json['mutualTlsAuthentication'] as Map<String, dynamic>)
: null,
regionalCertificateArn: json['regionalCertificateArn'] as String?,
regionalCertificateName: json['regionalCertificateName'] as String?,
regionalDomainName: json['regionalDomainName'] as String?,
regionalHostedZoneId: json['regionalHostedZoneId'] as String?,
securityPolicy: (json['securityPolicy'] as String?)?.toSecurityPolicy(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}