mirror of
https://github.com/stonega/tsacdop
synced 2025-02-03 17:07:38 +01:00
22 lines
350 B
Dart
22 lines
350 B
Dart
|
import 'package:xml/xml.dart';
|
||
|
|
||
|
class Rating {
|
||
|
final String scheme;
|
||
|
final String value;
|
||
|
|
||
|
Rating({
|
||
|
this.scheme,
|
||
|
this.value,
|
||
|
});
|
||
|
|
||
|
factory Rating.parse(XmlElement element) {
|
||
|
if (element == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return new Rating(
|
||
|
scheme: element.getAttribute("scheme"),
|
||
|
value: element.text,
|
||
|
);
|
||
|
}
|
||
|
}
|