toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (author != null) 'author': author!,
      if (createTime != null) 'createTime': createTime!,
      if (name != null) 'name': name!,
      if (text != null) 'text': text!,
      if (topAnswers != null) 'topAnswers': topAnswers!,
      if (totalAnswerCount != null) 'totalAnswerCount': totalAnswerCount!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (upvoteCount != null) 'upvoteCount': upvoteCount!,
    };