PlanInvite class

An invitation to a CalendarPlan.

Annotations

Constructors

PlanInvite({required int id, @JsonKey(name: 'inviterid') required int inviterId, @JsonKey(name: 'planid') required int planId, @JsonKey(name: 'inviteeid') required int invitedUserId, required PlanInviteStatus status, @UnixTimestampConverter() required DateTime timestamp})
An invitation to a CalendarPlan.
const
factory
PlanInvite.fromJson(Map<String, Object?> json)
Creates a PlanInvite from a JSON object.
factory

Properties

copyWith → $PlanInviteCopyWith<PlanInvite>
Create a copy of PlanInvite with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The ID of this invitation.
no setterinherited
invitedUserId int
The ID of the User who is invited.
no setterinherited
inviterId int
The ID of the User who created this invite.
no setterinherited
planId int
The ID of the CalendarPlan this invite is for.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PlanInviteStatus
The status of this invite.
no setterinherited
timestamp DateTime
The date and time this invite was created.
no setterinherited

Methods

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

Operators

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