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.

22 regels
419 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. return Restriction(
  13. relationship: element.getAttribute('relationship'),
  14. type: element.getAttribute('type'),
  15. value: element.text,
  16. );
  17. }
  18. }