GetDomainNamesResponse.fromJson constructor

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

Implementation

factory GetDomainNamesResponse.fromJson(Map<String, dynamic> json) {
  return GetDomainNamesResponse(
    items: (json['items'] as List?)
        ?.whereNotNull()
        .map((e) => DomainName.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}