ContentUpdateVersion class

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.

To get the current version number, use Get content by ID and retrieve version.number.

Constructors

ContentUpdateVersion({required int number, String? message})
ContentUpdateVersion.fromJson(Map<String, Object?> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
An optional message to be stored with the corresponding version.
final
number int
The version number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? number, String? message}) ContentUpdateVersion
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