The Webfeed Flutter package for Appeto SDK.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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