Document class

Document is the base model for the contentful rich text document. It contains the contentList that is returned from the API. The contentList are the entries that are returned from the API. The nodeType is the type of the node that is returned from the API.

Annotations
  • @freezed

Constructors

Document({@JsonKey(name: 'content') List<Content>? contentList, ContentfulContentNodeType? nodeType})
Document is the base model for the contentful rich text document. It contains the contentList that is returned from the API. The contentList are the entries that are returned from the API. The nodeType is the type of the node that is returned from the API.
const
factory
Document.fromJson(Map<String, dynamic> json)
factory

Properties

contentList List<Content>?
no setterinherited
copyWith → $DocumentCopyWith<Document>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
nodeType ContentfulContentNodeType?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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