fromSiteMap static method

SiteMap fromSiteMap(
  1. String xml
)

static method to create and return SiteMap. It takes xml as an argument which will contain the url of the relevant of web pages that we need to save as reference.

Example:

final siteMapUrl = 'https://sitemaps.example.com/sitemap-example-com.xml';
final siteMapObject = WebDataObject.fromSiteMap(siteMapUrl);

Implementation

static SiteMap fromSiteMap(String xml) {
  return SiteMap(xml);
}