MmCreatePostRequest class

Constructors

MmCreatePostRequest({required String channelId, required String message, String? rootId, List<String> fileIds = const [], Map? props})
Returns a new MmCreatePostRequest instance.

Properties

channelId String
The channel ID to post in
getter/setter pair
fileIds List<String>
A list of file IDs to associate with the post. Note that posts are limited to 5 files maximum. Please use additional posts for more files.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
message String
The message contents, can be formatted with Markdown
getter/setter pair
props Map?
A general JSON property bag to attach to the post
getter/setter pair
rootId String?
The post ID to comment on
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) MmCreatePostRequest?
Returns a new MmCreatePostRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmCreatePostRequest>?
mapFromJson(dynamic json) Map<String, MmCreatePostRequest>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmCreatePostRequest>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.