Files
huangguo_android/lib/hj_model/splash/cut_info.dart
T
2026-09-15 15:44:13 +07:00

25 lines
466 B
Dart

/// 粘贴版信息
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);
}