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