ListDomainsForPackageResponse.fromJson constructor

ListDomainsForPackageResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListDomainsForPackageResponse.fromJson(Map<String, dynamic> json) {
  return ListDomainsForPackageResponse(
    domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?)
        ?.whereNotNull()
        .map((e) => DomainPackageDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}