fromRss1 method Null safety

WebFeed fromRss1(
  1. Rss1Feed rss1feed
)

Implementation

static WebFeed fromRss1(Rss1Feed rss1feed) {
  return WebFeed(
    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(),
  );
}