Map<String, Object?> toJson() => { if (message != null) 'message': message, if (percentage != null) 'percentage': percentage, 'progressId': progressId, };