Message class
Constructors
-
Message({required MessageId? id, required String? body, required String? type, required int? t, required String? notifyName, required String? from, required String? to, @JsonKey(defaultValue: false) required bool isNewMsg, @JsonKey(defaultValue: false) required bool star, @JsonKey(defaultValue: false) required bool kicNotified, @JsonKey(defaultValue: false) required bool recvFresh, @JsonKey(defaultValue: false) required bool isFromTemplate, @JsonKey(defaultValue: false) required bool pollInvalidated, @JsonKey(defaultValue: false) required bool broadcast, @JsonKey(defaultValue: false) required bool isForwarded, @JsonKey(defaultValue: false) required bool hasReaction, @JsonKey(defaultValue: false) required bool ephemeralOutOfSync, required int? lastPlaybackProgress, @JsonKey(defaultValue: false) required bool isDynamicReplyButtonMsg, @JsonKey(defaultValue: false) required bool isMdHistoryMsg, required int? stickerSentTs, @JsonKey(defaultValue: false) required bool requiresDirectConnection, @JsonKey(defaultValue: false) required bool pttForwardedFeaturesEnabled, required String? caption})
-
const
factory
-
Message.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serializes this Message to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
parse(dynamic data)
→ List<Message>
-
Because Mobile platforms returns data as list
and desktop returns as map , so to unify the data