Price.parse constructor

Price.parse(
  1. XmlElement element
)

Parse constructor for the Price class, used when 'parsing' a feed

Implementation

factory Price.parse(XmlElement element) => Price(
      price: double.tryParse(element.getAttribute('price') ?? '0'),
      type: element.getAttribute('type'),
      info: element.getAttribute('info'),
      currency: element.getAttribute('currency'),
    );