parseConnections method Null safety

List<PipelineConnection> parseConnections(
  1. Json json,
  2. String endProcess
)

Generates connections from the json data

Implementation

static List<PipelineConnection> parseConnections(
    Json json, String endProcess) {
  List<PipelineConnection> _connections = List.from(json['connections'])
      .map((dynamic connection) => PipelineConnection(connection))
      .toList();
  _connections.add(PipelineConnection.withSource(endProcess));
  return _connections;
}