GetDataflowGraphResponse.fromJson constructor

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

Implementation

factory GetDataflowGraphResponse.fromJson(Map<String, dynamic> json) {
  return GetDataflowGraphResponse(
    dagEdges: (json['DagEdges'] as List?)
        ?.whereNotNull()
        .map((e) => CodeGenEdge.fromJson(e as Map<String, dynamic>))
        .toList(),
    dagNodes: (json['DagNodes'] as List?)
        ?.whereNotNull()
        .map((e) => CodeGenNode.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}