toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (conversation != null) 'conversation': conversation!,
      if (conversationProfile != null)
        'conversationProfile': conversationProfile!,
      if (latestMessage != null) 'latestMessage': latestMessage!,
      if (parent != null) 'parent': parent!,
      if (query != null) 'query': query!,
      if (sessionId != null) 'sessionId': sessionId!,
    };