1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-04 09:27:34 +01:00
2020-02-09 20:29:09 +08:00

25 lines
424 B
Dart

import 'package:xml/xml.dart';
class License {
final String type;
final String href;
final String value;
License({
this.type,
this.href,
this.value,
});
factory License.parse(XmlElement element) {
if (element == null) {
return null;
}
return new License(
type: element.getAttribute("type"),
href: element.getAttribute("href"),
value: element.text,
);
}
}