mirror of
https://github.com/stonega/tsacdop
synced 2024-12-08 14:35:47 +01:00
17 lines
417 B
Dart
17 lines
417 B
Dart
import 'package:xml/xml.dart';
|
|
|
|
class AtomCategory {
|
|
final String term;
|
|
final String scheme;
|
|
final String label;
|
|
|
|
AtomCategory(this.term, this.scheme, this.label);
|
|
|
|
factory AtomCategory.parse(XmlElement element) {
|
|
var term = element.getAttribute("term");
|
|
var scheme = element.getAttribute("scheme");
|
|
var label = element.getAttribute("label");
|
|
return AtomCategory(term, scheme, label);
|
|
}
|
|
}
|