ContentCreate class

Constructors

ContentCreate({String? id, String? title, required String type, ContentCreateSpace? space, ContentCreateStatus? status, ContentCreateContainer? container, List<ContentCreateAncestorsItem>? ancestors, ContentCreateBody? body})
ContentCreate.fromJson(Map<String, Object?> json)
factory

Properties

ancestors → List<ContentCreateAncestorsItem>
The parent content of the new content. If you are creating a top-level page or comment, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
final
body → ContentCreateBody?
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. storage.
final
container → ContentCreateContainer?
The container of the content. Required if type is comment or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The ID of the draft content. Required when publishing a draft.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
space → ContentCreateSpace?
The space that the content is being created in.
final
status → ContentCreateStatus?
The status of the new content.
final
title → String?
final
type → String
The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
final

Methods

copyWith({String? id, String? title, String? type, ContentCreateSpace? space, ContentCreateStatus? status, ContentCreateContainer? container, List<ContentCreateAncestorsItem>? ancestors, ContentCreateBody? body}) → ContentCreate
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