MmPostMetadata class

Constructors

MmPostMetadata({List<MmPostMetadataEmbedsInner> embeds = const [], List<MmEmoji> emojis = const [], List<MmFileInfo> files = const [], List<MmPostMetadataImagesInner> images = const [], List<MmReaction> reactions = const []})
Returns a new MmPostMetadata instance.

Properties

embeds List<MmPostMetadataEmbedsInner>
Information about content embedded in the post including OpenGraph previews, image link previews, and message attachments. This field will be null if the post does not contain embedded content.
getter/setter pair
emojis List<MmEmoji>
The custom emojis that appear in this point or have been used in reactions to this post. This field will be null if the post does not contain custom emojis.
getter/setter pair
files List<MmFileInfo>
The FileInfo objects for any files attached to the post. This field will be null if the post does not have any file attachments.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
images List<MmPostMetadataImagesInner>
An object mapping the URL of an external image to an object containing the dimensions of that image. This field will be null if the post or its embedded content does not reference any external images.
getter/setter pair
reactions List<MmReaction>
Any reactions made to this point. This field will be null if no reactions have been made to this post.
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) MmPostMetadata?
Returns a new MmPostMetadata instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmPostMetadata>?
mapFromJson(dynamic json) Map<String, MmPostMetadata>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmPostMetadata>>

Constants

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