DomainValidation.fromJson constructor
DomainValidation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DomainValidation.fromJson(Map<String, dynamic> json) {
return DomainValidation(
domainName: json['DomainName'] as String,
resourceRecord: json['ResourceRecord'] != null
? ResourceRecord.fromJson(
json['ResourceRecord'] as Map<String, dynamic>)
: null,
validationDomain: json['ValidationDomain'] as String?,
validationEmails: (json['ValidationEmails'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
validationMethod:
(json['ValidationMethod'] as String?)?.toValidationMethod(),
validationStatus: (json['ValidationStatus'] as String?)?.toDomainStatus(),
);
}