mirror of
https://github.com/stonega/tsacdop
synced 2025-01-24 20:52:56 +01:00
22 lines
350 B
Dart
22 lines
350 B
Dart
import 'package:xml/xml.dart';
|
|
|
|
class Copyright {
|
|
final String url;
|
|
final String value;
|
|
|
|
Copyright({
|
|
this.url,
|
|
this.value,
|
|
});
|
|
|
|
factory Copyright.parse(XmlElement element) {
|
|
if (element == null) {
|
|
return null;
|
|
}
|
|
return new Copyright(
|
|
url: element.getAttribute("url"),
|
|
value: element.text,
|
|
);
|
|
}
|
|
}
|