ListDomainsResponse.fromJson constructor

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

Implementation

factory ListDomainsResponse.fromJson(Map<String, dynamic> json) {
  return ListDomainsResponse(
    domains: (json['Domains'] as List)
        .whereNotNull()
        .map((e) => DomainSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageMarker: json['NextPageMarker'] as String?,
  );
}