ContentUpdate class

Constructors

ContentUpdate({required ContentUpdateVersion version, String? title, required String type, ContentUpdateStatus? status, List<ContentUpdateAncestorsItem>? ancestors, ContentUpdateBody? body})
ContentUpdate.fromJson(Map<String, Object?> json)
factory

Properties

ancestors List<ContentUpdateAncestorsItem>
The new parent for the content. Only one parent content 'id' can be specified.
final
body ContentUpdateBody?
The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using Get content, and expand the desired content format, e.g. expand=body.storage.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ContentUpdateStatus?
The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.
final
title String?
The updated title of the content. If you are updating a non-draft page or blogpost, title is required. If you are not changing the title, set this field to the the current title.
final
type String
The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
final
version ContentUpdateVersion
The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1.
final

Methods

copyWith({ContentUpdateVersion? version, String? title, String? type, ContentUpdateStatus? status, List<ContentUpdateAncestorsItem>? ancestors, ContentUpdateBody? body}) ContentUpdate
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