GetDomainsResult.fromJson constructor

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

Implementation

factory GetDomainsResult.fromJson(Map<String, dynamic> json) {
  return GetDomainsResult(
    domains: (json['domains'] as List?)
        ?.whereNotNull()
        .map((e) => Domain.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}