toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (historyId != null) 'historyId': historyId!,
if (id != null) 'id': id!,
if (messages != null) 'messages': messages!,
if (snippet != null) 'snippet': snippet!,
};