Tags.parse constructor

Tags.parse(
  1. XmlElement element
)

Implementation

factory Tags.parse(XmlElement element) {
  return Tags(
    tags: element.text,
    weight: int.tryParse(element.getAttribute('weight') ?? '1'),
  );
}