Thread

public Thread Thread(@Json(name = "id") String id, @Json(name = "grant_id") String grantId, @Json(name = "object") String obj, @Json(name = "latest_draft_or_message") IMessage latestDraftOrMessage, @Json(name = "has_attachments") Boolean hasAttachments, @Json(name = "has_drafts") Boolean hasDrafts, @Json(name = "starred") Boolean starred, @Json(name = "unread") Boolean unread, @Json(name = "earliest_message_date") Long earliestMessageDate, @Json(name = "latest_message_received_date") Long latestMessageReceivedDate, @Json(name = "latest_message_sent_date") Long latestMessageSentDate, @Json(name = "participants") List<EmailName> participants, @Json(name = "message_ids") List<String> messageIds, @Json(name = "draft_ids") List<String> draftIds, @Json(name = "folders") List<String> folders, @Json(name = "snippet") String snippet, @Json(name = "subject") String subject)