UserActivity class

Annotations
  • @freezed

Constructors

UserActivity.new({@JsonKey(name: 'type') required String type, @JsonKey(name: 'submissionId') required String submissionId, @JsonKey(name: 'createdAt') required DateTime createdAt, @JsonKey(name: 'submission') required UserActivitySubmission submission, @JsonKey(name: 'comment') UserActivityComment? comment})
const
factory
UserActivity.fromJson(Map<String, Object?> json)
factory

Properties

comment UserActivityComment?
The comment
no setterinherited
copyWith → $UserActivityCopyWith<UserActivity>
Create a copy of UserActivity with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
The created at date
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
submission UserActivitySubmission
The submission
no setterinherited
submissionId String
The submission id
no setterinherited
type String
The type of the user activity
no setterinherited

Methods

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

Operators

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