Content constructor

Content({
  1. String? id,
  2. required String type,
  3. required String status,
  4. String? title,
  5. Space? space,
  6. ContentHistory? history,
  7. Version? version,
  8. List<Content>? ancestors,
  9. List<OperationCheckResult>? operations,
  10. ContentChildren? children,
  11. ContentChildType? childTypes,
  12. ContentChildren? descendants,
  13. Container? container,
  14. ContentBodyValue? body,
  15. ContentRestrictions? restrictions,
  16. ContentMetadata? metadata,
  17. Map<String, dynamic>? macroRenderedOutput,
  18. Map<String, dynamic>? extensions,
  19. ContentExpandable? expandable,
  20. GenericLinks? links,
})

Implementation

Content(
    {this.id,
    required this.type,
    required this.status,
    this.title,
    this.space,
    this.history,
    this.version,
    List<Content>? ancestors,
    List<OperationCheckResult>? operations,
    this.children,
    this.childTypes,
    this.descendants,
    this.container,
    this.body,
    this.restrictions,
    this.metadata,
    this.macroRenderedOutput,
    this.extensions,
    this.expandable,
    this.links})
    : ancestors = ancestors ?? [],
      operations = operations ?? [];