初始化

This commit is contained in:
谢宇宁
2026-09-15 15:44:13 +07:00
commit a23ba685e9
1065 changed files with 101122 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/// 粘贴版信息
class CutInfo {
// pc是邀请码promoteCode
String? pc;
/// dc是渠道 distinctCode
String? dc;
String? tid;
static CutInfo fromMap(Map<String, dynamic>? map) {
map ??= {};
return CutInfo()
..pc = map['pc']
..dc = map['dc']
..tid = map['tid'];
}
Map toJson() => {
"pc": pc,
"dc": dc,
"tid": tid,
}..removeWhere((key, value) => value == null || (value as String?)?.isEmpty == true);
}