Content class

Base object for all content types.

Constructors

Content({String? id, required String type, required String status, String? title, Space? space, ContentHistory? history, Version? version, List<Content>? ancestors, List<OperationCheckResult>? operations, ContentChildren? children, ContentChildType? childTypes, ContentChildren? descendants, Container? container, ContentBodyValue? body, ContentRestrictions? restrictions, ContentMetadata? metadata, Map<String, dynamic>? macroRenderedOutput, Map<String, dynamic>? extensions, ContentExpandable? expandable, GenericLinks? links})
Content.fromJson(Map<String, Object?> json)
factory

Properties

ancestors List<Content>
final
body ContentBodyValue?
final
children ContentChildren?
final
childTypes ContentChildType?
final
container Container?
final
descendants ContentChildren?
final
expandable ContentExpandable?
final
extensions Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setterinherited
history ContentHistory?
final
id String?
final
final
macroRenderedOutput Map<String, dynamic>?
final
metadata ContentMetadata?
final
operations List<OperationCheckResult>
final
restrictions ContentRestrictions?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space Space?
final
status String
final
title String?
final
type String
Can be "page", "blogpost", "attachment" or "content"
final
version Version?
final

Methods

copyWith({String? id, String? type, String? status, String? title, Space? space, ContentHistory? history, Version? version, List<Content>? ancestors, List<OperationCheckResult>? operations, ContentChildren? children, ContentChildType? childTypes, ContentChildren? descendants, Container? container, ContentBodyValue? body, ContentRestrictions? restrictions, ContentMetadata? metadata, Map<String, dynamic>? macroRenderedOutput, Map<String, dynamic>? extensions, ContentExpandable? expandable, GenericLinks? links}) Content
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited