mirror of
https://github.com/stonega/tsacdop
synced 2025-01-09 22:04:08 +01:00
22 lines
362 B
Dart
22 lines
362 B
Dart
import 'package:xml/xml.dart';
|
|
|
|
class Description {
|
|
final String type;
|
|
final String value;
|
|
|
|
Description({
|
|
this.type,
|
|
this.value,
|
|
});
|
|
|
|
factory Description.parse(XmlElement element) {
|
|
if (element == null) {
|
|
return null;
|
|
}
|
|
return new Description(
|
|
type: element.getAttribute("type"),
|
|
value: element.text,
|
|
);
|
|
}
|
|
}
|