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.

25 lines
436 B

  1. import 'package:xml/xml.dart';
  2. class Category {
  3. final String scheme;
  4. final String label;
  5. final String value;
  6. Category({
  7. this.scheme,
  8. this.label,
  9. this.value,
  10. });
  11. factory Category.parse(XmlElement element) {
  12. if (element == null) {
  13. return null;
  14. }
  15. return Category(
  16. scheme: element.getAttribute('scheme'),
  17. label: element.getAttribute('label'),
  18. value: element.text,
  19. );
  20. }
  21. }