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