class KRInviteProgress {
  final int pending; // 待下载
  final int processing; // 在路上
  final int success; // 已成功
  final int expired; // 已失效
  final String? referCode; // 邀请码

  KRInviteProgress({
    this.pending = 0,
    this.processing = 0,
    this.success = 0,
    this.expired = 0,
    this.referCode,
  });

  factory KRInviteProgress.fromJson(Map<String, dynamic> json) {
    return KRInviteProgress(
      pending: json['pending'] ?? 0,
      processing: json['processing'] ?? 0,
      success: json['success'] ?? 0,
      expired: json['expired'] ?? 0,
      referCode: json['referCode'],
    );
  }
} 