toJson method

dynamic toJson()

Implementation

dynamic toJson() {
  if (content != null) {
    return (content as dynamic).toJson();
  } else {
    return contentId!.value;
  }
}