Content class
Content is usually non null when we have a node type of document or paragraph. It contains a list of paragraph contents. And if it is a document it contains a list of different node types.
- Annotations
-
- @freezed
Constructors
-
Content({required ContentfulContentNodeType nodeType, ContentfulContentNodeType? parentNodeType, Data? data, @JsonKey(name: 'content') List<
Content> ? subContent, List<ContentfulTextMark> ? marks, String? value}) -
Content is usually non null when we have a node type of document or paragraph.
It contains a list of paragraph contents.
And if it is a document it contains a list of different node types.
constfactory
-
Content.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $ContentCopyWith<
Content> -
no setterinherited
- data → Data?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
marks
→ List<
ContentfulTextMark> ? -
no setterinherited
- nodeType → ContentfulContentNodeType
-
no setterinherited
- parentNodeType → ContentfulContentNodeType?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subContent
→ List<
Content> ? -
no setterinherited
- value → String?
-
value will be not null if we have a text
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited