ListNamespacesResponse.fromJson constructor

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

Implementation

factory ListNamespacesResponse.fromJson(Map<String, dynamic> json) {
  return ListNamespacesResponse(
    namespaces: (json['Namespaces'] as List?)
        ?.whereNotNull()
        .map((e) => NamespaceSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}