toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (answer != null) 'answer': answer!,
      if (answerRecord != null) 'answerRecord': answerRecord!,
      if (answerSources != null) 'answerSources': answerSources!,
      if (answerType != null) 'answerType': answerType!,
    };