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
346 B

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