The Webfeed Flutter package for Appeto SDK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
324 B

  1. import 'package:xml/xml.dart';
  2. class Copyright {
  3. final String? url;
  4. final String? value;
  5. Copyright({
  6. this.url,
  7. this.value,
  8. });
  9. static parse(XmlElement? element) {
  10. if (element == null) return null;
  11. return Copyright(
  12. url: element.getAttribute('url'),
  13. value: element.text,
  14. );
  15. }
  16. }