toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (assignment != null) 'assignment': assignment!,
  if (mentionedUsers != null) 'mentionedUsers': mentionedUsers!,
  if (post != null) 'post': post!,
  if (suggestion != null) 'suggestion': suggestion!,
};