toJson method
Implementation
Map<String, dynamic> toJson() => {
'is_active': isActive,
'current_completes': currentCompletes,
'bonus_window_end_at': bonusWindowEndAt,
'bonus_tiers': bonusTiers?.map((e) => e.toJson()).toList(),
'error': error?.toJson(),
};