mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
21 lines
436 B
Dart
21 lines
436 B
Dart
class Subtitle {
|
||
String? lan;
|
||
String? lanDoc;
|
||
String? subtitleUrl;
|
||
String? subtitleUrlV2;
|
||
|
||
Subtitle({
|
||
this.lan,
|
||
this.lanDoc,
|
||
this.subtitleUrl,
|
||
this.subtitleUrlV2,
|
||
});
|
||
|
||
Subtitle.fromJson(Map<String, dynamic> json) {
|
||
lan = json["lan"];
|
||
lanDoc = '${json["lan_doc"]}${lan!.startsWith('ai') ? '(AI)' : ''}';
|
||
subtitleUrl = json["subtitle_url"];
|
||
subtitleUrlV2 = json["subtitle_url_v2"];
|
||
}
|
||
}
|