The Webfeed Flutter package for Appeto SDK.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

25 rader
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. }