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 (updateTime != null) 'updateTime': updateTime!,
      if (upvoteCount != null) 'upvoteCount': upvoteCount!,
    };