The Webfeed Flutter package for Appeto SDK.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
358 B

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