DomainAssociation.fromJson constructor
DomainAssociation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DomainAssociation.fromJson(Map<String, dynamic> json) {
return DomainAssociation(
domainAssociationArn: json['domainAssociationArn'] as String,
domainName: json['domainName'] as String,
domainStatus: (json['domainStatus'] as String).toDomainStatus(),
enableAutoSubDomain: json['enableAutoSubDomain'] as bool,
statusReason: json['statusReason'] as String,
subDomains: (json['subDomains'] as List)
.whereNotNull()
.map((e) => SubDomain.fromJson(e as Map<String, dynamic>))
.toList(),
autoSubDomainCreationPatterns:
(json['autoSubDomainCreationPatterns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
autoSubDomainIAMRole: json['autoSubDomainIAMRole'] as String?,
certificateVerificationDNSRecord:
json['certificateVerificationDNSRecord'] as String?,
);
}