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