EasyApiMessage class
Simple api for integrations /api/message or /tasks/team
/num/message.
- Annotations
-
- @freezed
Constructors
- EasyApiMessage({@JsonKey(name: 'key') required String key, @JsonKey(name: 'message') required String text, @JsonKey(name: 'message_id') required String messageUid, @JsonKey(name: 'nopreview') required bool nopreview, @JsonKey(name: 'important') required bool important, @JsonKey(name: 'silently') required bool silently, @JsonKey(name: 'convert_linebreaks') required bool convertLinebreaks})
-
constfactory
-
EasyApiMessage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- convertLinebreaks → bool
-
Convert "\n" to "\n".
no setterinherited
-
copyWith
→ $EasyApiMessageCopyWith<
EasyApiMessage> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- important → bool
-
Mark message as important.
no setterinherited
- key → String
-
Comma separated api keys (for /api/message calls only).
no setterinherited
- messageUid → String
-
Message uuid. Optional.
no setterinherited
- nopreview → bool
-
Disable links preview.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- silently → bool
-
Disable counters and push notifications.
no setterinherited
- text → String
-
Message text. Required.
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