ActivityUpdate class

For updating only parts of one or more activities by changing, adding, or removing fields.

Annotations
  • @JsonSerializable()
  • @DateTimeUTCConverter()

Constructors

ActivityUpdate({required Map<String, Object>? set, required List<String>? unset, String? id, String? foreignId, DateTime? time})
Builds an ActivityUpdate.
const
ActivityUpdate.fromJson(Map<String, dynamic> json)
Create a new instance from a JSON object
factory
ActivityUpdate.withForeignId({required String foreignId, required DateTime time, Map<String, Object>? set, List<String>? unset})
ActivityUpdate with ForeignId and time
factory
ActivityUpdate.withId({required String id, Map<String, Object>? set, List<String>? unset})
ActivityUpdate with Id
factory

Properties

foreignId String?
The target activity foreign ID (matched with time).
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The target activity ID.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
set Map<String, Object>?
An object containing the set operations, where keys are the target fields and the values are the values to be set.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
time DateTime?
The target activity timestamp (matched with foreign_id).
final
unset List<String>?
A list of strings containing the fields to be removed from the activity.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize to JSON
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited