tsacdop-podcast-app-android/lib/webfeed/domain/rss_itunes_owner.dart

19 lines
446 B
Dart

import 'package:xml/xml.dart';
import '../util/helpers.dart';
class RssItunesOwner {
final String name;
final String email;
RssItunesOwner({this.name, this.email});
factory RssItunesOwner.parse(XmlElement element) {
if (element == null) return null;
return RssItunesOwner(
name: findElementOrNull(element, "itunes:name")?.text?.trim(),
email: findElementOrNull(element, "itunes:email")?.text?.trim(),
);
}
}