Message class
- Annotations
-
- @freezed
Constructors
-
Message({required int id, required String body, required String date, @JsonKey(name: 'author_id', fromJson: MessageAuthor.fromList) required MessageAuthor author, @JsonKey(name: 'email_from') required String emailFrom, @JsonKey(name: 'message_type') required String messageType, @JsonKey(name: 'subtype_id') required List subtypeId, required String model, @JsonKey(name: 'res_id') required int resId, @JsonKey(name: 'record_name') required String recordName, @JsonKey(name: 'partner_ids') required List<
int> partnerIds, @JsonKey(name: 'starred_partner_ids') required List<int> starredPartnerIds, @JsonKey(name: 'moderation_status', fromJson: Message.parseModerationStatus) required String? moderationStatus, required List<int> notifications, @JsonKey(name: 'attachment_ids') required List<Attachment> atachments, @JsonKey(name: 'tracking_value_ids') required List<int> trackingValueIds, @JsonKey(name: 'needaction_partner_ids') required List<int> needactionPartnerIds, @JsonKey(name: 'history_partner_ids') required List<int> historyPartnerIds, @JsonKey(name: 'is_note') required bool isNote, @JsonKey(name: 'is_discussion') required bool isDiscussion, @JsonKey(name: 'subtype_description') required bool subtypeDescription, @JsonKey(name: 'is_notification') required bool isNotification, @JsonKey(name: 'module_icon') required String moduleIcon, @JsonKey(name: 'sms_ids') required List<int> smsIds}) -
constfactory
-
Message.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
atachments
→ List<
Attachment> -
no setterinherited
-
no setterinherited
- body → String
-
no setterinherited
-
copyWith
→ $MessageCopyWith<
Message> -
no setterinherited
- date → String
-
no setterinherited
- emailFrom → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
historyPartnerIds
→ List<
int> -
no setterinherited
- id → int
-
no setterinherited
- isDiscussion → bool
-
no setterinherited
- isNote → bool
-
no setterinherited
- isNotification → bool
-
no setterinherited
- messageType → String
-
no setterinherited
- model → String
-
no setterinherited
- moderationStatus → String?
-
no setterinherited
- moduleIcon → String
-
no setterinherited
-
needactionPartnerIds
→ List<
int> -
no setterinherited
-
notifications
→ List<
int> -
no setterinherited
-
partnerIds
→ List<
int> -
no setterinherited
- recordName → String
-
no setterinherited
- resId → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
smsIds
→ List<
int> -
no setterinherited
-
starredPartnerIds
→ List<
int> -
no setterinherited
- subtypeDescription → bool
-
no setterinherited
- subtypeId → List
-
no setterinherited
-
trackingValueIds
→ List<
int> -
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parseModerationStatus(
dynamic value) → String?