Comment constructor

Comment({
  1. UserDetails? author,
  2. dynamic body,
  3. DateTime? created,
  4. String? id,
  5. bool? jsdAuthorCanSeeRequest,
  6. bool? jsdPublic,
  7. List<EntityProperty>? properties,
  8. String? renderedBody,
  9. String? self,
  10. UserDetails? updateAuthor,
  11. DateTime? updated,
  12. Visibility? visibility,
})

Implementation

Comment(
    {this.author,
    this.body,
    this.created,
    this.id,
    bool? jsdAuthorCanSeeRequest,
    bool? jsdPublic,
    List<EntityProperty>? properties,
    this.renderedBody,
    this.self,
    this.updateAuthor,
    this.updated,
    this.visibility})
    : jsdAuthorCanSeeRequest = jsdAuthorCanSeeRequest ?? false,
      jsdPublic = jsdPublic ?? false,
      properties = properties ?? [];