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.

25 regels
499 B

  1. import 'package:xml/xml.dart';
  2. class Price {
  3. final double? price;
  4. final String? type;
  5. final String? info;
  6. final String? currency;
  7. Price({
  8. this.price,
  9. this.type,
  10. this.info,
  11. this.currency,
  12. });
  13. factory Price.parse(XmlElement element) {
  14. return Price(
  15. price: double.tryParse(element.getAttribute('price') ?? '0'),
  16. type: element.getAttribute('type'),
  17. info: element.getAttribute('info'),
  18. currency: element.getAttribute('currency'),
  19. );
  20. }
  21. }