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) => NamespaceInfoV2.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    requestId: json['RequestId'] as String?,
  );
}