ResendRetrieveDomainResponse.fromJson constructor
ResendRetrieveDomainResponse.fromJson(
- Json json
Factory method for creating a ResendRetrieveDomainResponse instance from a JSON object
Implementation
factory ResendRetrieveDomainResponse.fromJson(Json json) {
return ResendRetrieveDomainResponse(
domainId: json['id'] as String,
name: json['name'] as String,
status: ResendDomainStatus.fromValue(json['status'] as String),
createdAt: DateTime.parse(json['created_at'] as String),
region: ResendDomainRegion.fromValue(json['region']),
records: List<Json>.from(json['records'])
.map((j) => ResendDomainRecord.fromJson(j))
.toList());
}