fromRss1 static method

WebFeed fromRss1(
  1. Rss1Feed rss1feed
)

Implementation

static WebFeed fromRss1(Rss1Feed rss1feed) {
  return WebFeed(
    rssVersion: RssVersion.rss1,
    title: rss1feed.title ?? rss1feed.dc?.title ?? '',
    description: rss1feed.description ?? rss1feed.dc?.description ?? '',
    links: [rss1feed.link],
    items: rss1feed.items
        .map(
          (item) => WebFeedItem(
            title: item.title ?? item.dc?.title ?? '',
            body: item.description ?? item.dc?.description ?? '',
            updated: SafeParseDateTime.safeParse(item.dc?.date),
            links: [item.link],
          ),
        )
        .toList(),
  );
}