ListNodesOutput.fromJson constructor

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

Implementation

factory ListNodesOutput.fromJson(Map<String, dynamic> json) {
  return ListNodesOutput(
    nextToken: json['NextToken'] as String?,
    nodes: (json['Nodes'] as List?)
        ?.whereNotNull()
        .map((e) => NodeSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}