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