DomainInfos.fromJson constructor

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

Implementation

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