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