CommunicationEvent class abstract

A logged communication with a person or company.

Available extensions
Annotations
  • @freezed

Constructors

CommunicationEvent({String? communicationEventId, CommunicationEventType? type, CommunicationDirection? direction, @DateTimeConverter() DateTime? entryDate, String? subject, String? body, String? contentType, String? note, bool? isAuto, String? fromPartyPseudoId, String? fromPartyName, String? toPartyPseudoId, String? toPartyName, String? partyPseudoId})
factory
CommunicationEvent.fromJson(Map<String, dynamic> json)
factory

Properties

body → String?
no setterinherited
communicationEventId → String?
no setterinherited
contentType → String?
no setterinherited
copyWith → $CommunicationEventCopyWith<CommunicationEvent>
Create a copy of CommunicationEvent with the given fields replaced by the non-null parameter values.
no setterinherited
direction → CommunicationDirection?
no setterinherited
entryDate → DateTime?
no setterinherited
fromPartyName → String?
no setterinherited
fromPartyPseudoId → String?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isAuto → bool?
no setterinherited
note → String?
no setterinherited
partyPseudoId → String?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject → String?
no setterinherited
toPartyName → String?
no setterinherited
toPartyPseudoId → String?
no setterinherited
type → CommunicationEventType?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_CommunicationEvent value)) → TResult

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_CommunicationEvent value)?) → TResult?

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_CommunicationEvent value)?, {required TResult orElse()}) → TResult

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? communicationEventId, CommunicationEventType? type, CommunicationDirection? direction, DateTime? entryDate, String? subject, String? body, String? contentType, String? note, bool? isAuto, String? fromPartyPseudoId, String? fromPartyName, String? toPartyPseudoId, String? toPartyName, String? partyPseudoId)?, {required TResult orElse()}) → TResult

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this CommunicationEvent to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? communicationEventId, CommunicationEventType? type, CommunicationDirection? direction, DateTime? entryDate, String? subject, String? body, String? contentType, String? note, bool? isAuto, String? fromPartyPseudoId, String? fromPartyName, String? toPartyPseudoId, String? toPartyName, String? partyPseudoId)) → TResult

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? communicationEventId, CommunicationEventType? type, CommunicationDirection? direction, DateTime? entryDate, String? subject, String? body, String? contentType, String? note, bool? isAuto, String? fromPartyPseudoId, String? fromPartyName, String? toPartyPseudoId, String? toPartyName, String? partyPseudoId)?) → TResult?

Available on CommunicationEvent, provided by the CommunicationEventPatterns extension

A variant of when that fallback to returning null

Operators

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