The Webfeed Flutter package for Appeto SDK.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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