mirror of
https://github.com/stonega/tsacdop
synced 2024-12-08 06:31:51 +01:00
19 lines
366 B
Dart
19 lines
366 B
Dart
import 'package:xml/xml.dart';
|
|
|
|
class RssCategory {
|
|
final String domain;
|
|
final String value;
|
|
|
|
RssCategory(this.domain, this.value);
|
|
|
|
factory RssCategory.parse(XmlElement element) {
|
|
if (element == null) {
|
|
return null;
|
|
}
|
|
var domain = element.getAttribute("domain");
|
|
var value = element.text;
|
|
|
|
return RssCategory(domain, value);
|
|
}
|
|
}
|