toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (answer != null) 'answer': answer!,
      if (confidenceScore != null) 'confidenceScore': confidenceScore!,
      if (metadata != null) 'metadata': metadata!,
      if (queryRecord != null) 'queryRecord': queryRecord!,
      if (question != null) 'question': question!,
      if (source != null) 'source': source!,
    };