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