Document constructor
const
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.
Implementation
const factory Document({
// ignore: invalid_annotation_target
@JsonKey(name: 'content') List<Content>? contentList,
ContentfulContentNodeType? nodeType,
}) = _Document;