extractTeamContext function

TeamContext extractTeamContext(
  1. BeautifulSoup soup,
  2. String rootId
)

Implementation

TeamContext extractTeamContext(BeautifulSoup soup, String rootId) {
  Bs4Element ownerElement = soup.findAll("*", class_: 'textLeft').first;
  List<String> withSubject = ownerElement.text.split(":");
  return TeamContext(withSubject[1].trim(), rootId);
}