Price.parse constructor

Price.parse(
  1. XmlElement element
)

Implementation

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