CommentDTO constructor

CommentDTO({
  1. List<String>? expands,
  2. SelfLinkDTO? links,
  3. PagedDTOAttachmentDTO? attachments,
  4. UserDTO? author,
  5. String? body,
  6. DateDTO? created,
  7. String? id,
  8. bool? public,
  9. RenderedValueDTO? renderedBody,
})

Implementation

CommentDTO(
    {List<String>? expands,
    this.links,
    this.attachments,
    this.author,
    this.body,
    this.created,
    this.id,
    bool? public,
    this.renderedBody})
    : expands = expands ?? [],
      public = public ?? false;