AtomCategory.parse constructor

AtomCategory.parse(
  1. XmlElement element
)

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

Implementation

factory AtomCategory.parse(XmlElement element) {
  final term = element.getAttribute('term');
  final scheme = element.getAttribute('scheme');
  final label = element.getAttribute('label');
  return AtomCategory(term, scheme, label);
}