The Webfeed Flutter package for Appeto SDK.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

25 行
468 B

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