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.

19 lines
313 B

  1. import 'package:xml/xml.dart';
  2. class Status {
  3. final String? state;
  4. final String? reason;
  5. Status({
  6. this.state,
  7. this.reason,
  8. });
  9. factory Status.parse(XmlElement element) {
  10. return Status(
  11. state: element.getAttribute('state'),
  12. reason: element.getAttribute('reason'),
  13. );
  14. }
  15. }